MM
Mikaël Morvan
December 8, 2005 02:23 PM UTC
Is there a way to do this before BeginEdit ?
AD
Administrator
Syncfusion Team
December 8, 2005 03:06 PM UTC
If you always want to see them, you can provide them through the QueryCellStyleInfo event.
private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.TableCellType == GridTableCellType.AddNewRecordFieldCell)
{
GridRecordRow record = e.TableCellIdentity.DisplayElement as GridRecordRow;
if(record != null && e.Style.Text.Length == 0)
{
if(e.TableCellIdentity.Column.Name == "Col1")
{
e.Style.Text = "0";
}
else
{
e.Style.Text = "-1";
}
}
}
}