DataGrid column formatting to display Time values

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
 
S

Steve Willcock

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top