AD
Administrator
Syncfusion Team
August 27, 2004 03:05 PM UTC
To set style properties on a column in a GridDataBoundGrid, you use the GridBoundColumn.StyleInfo object instead of the ColStyle object used for GridControl.
So, try
GridStyleInfo style = m_gridData.Binder.InternalColumns["DataStamp"].StyleInfo;
style.CellValueType = typeof(DateTime);
style.Format = "HH:mm MM/dd/yy";
if you have not explicitly added GridBoundColumns to your grid. If you have added GridBoundCOlumns, use:
GridStyleInfo style = m_gridData.GridBoundColumns["DataStamp"].StyleInfo;
style.CellValueType = typeof(DateTime);
style.Format = "HH:mm MM/dd/yy";
JO
Jon
August 27, 2004 03:38 PM UTC
Thank you for the quick response!
Jon