We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl & AddNewRecord

Thread ID:

Created:

Updated:

Platform:

Replies:

38205 Dec 8,2005 10:29 AM UTC Dec 8,2005 03:06 PM UTC Windows Forms 3
loading
Tags: GridControl
Mikaël Morvan
Asked On December 8, 2005 10:29 AM UTC

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

stanleyj [Syncfusion]
Replied On 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

Mikaël Morvan
Replied On December 8, 2005 02:23 PM UTC

Is there a way to do this before BeginEdit ?

Administrator [Syncfusion]
Replied On 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"; } } } }

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;