DataGrid column formatting to display Time values

  • Thread starter Thread starter elixxir
  • Start date Start date
E

elixxir

Greetings,

I'd like to format a column of a DataGrid to display only the Time
value instead of DateTime (ie. the format would be {0:t})

The problem is that the table that the DataGrid is bound to is actually
part of a master/detail relationship and it appears that you can't use
TableStyles with a DataRelation.

Does anyone know of a way I can get to format my columns?
I'd be grateful for any hints.

Paul
 
Unless I'm getting hold of the wrong end of the stick here, I think what you
need to do is to specify multiple TableStyles and set the MappingName of
each to match the relevant table name - i.e. one table style for the master
table and one for the detail table - this works for me on Windows forms
datagrids with master/detail realtionships to allow table specific
formatting.
 
Back
Top