GridGroupingControl & AddNewRecord

Hi, How can i initialize the AddNewRecord (AppendRow) with some default values. Regards, Mikaël

3 Replies

ST stanleyj Syncfusion Team December 8, 2005 11:47 AM UTC

Hi Mikael, Please refer this thread http://www.syncfusion.com/Support/forums/message.aspx?MessageID=37663 Regards, Stanley


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"; } } } }

Loader.
Up arrow icon