Hi Karsten,
You can handle the QueryCellFormattedText event of the grid and set the e.Text to some formatted value to want to display. Below is some code snippet.
private void QueryCellFormattedText(object sender, GridCellTextEventArgs e)
{
GridTableCellStyleInfo style = e.Style as GridTableCellStyleInfo;
if( style != null && style.TableCellIdentity.Column != null
&& style.TableCellIdentity.Column.Name == "Col1" )
{
Element el = style.TableCellIdentity.DisplayElement;
if( el.Kind == DisplayElementKind.Record )
{
if( e.Value == null || e.Value.ToString() == string.Empty )
e.Text = "000000";
else
e.Text = string.Format("{0:000000}",e.Value);
e.Handled = true;
}
}
}
Sample :
http://www.syncfusion.com/Support/user/uploads/GGCUpdate_e364cdc8.zipThanks,
Haneef