Help!Blank row is coming by default in Databound GGC

Hi,
I have simple one parent-child relationship in dataset which i have binded to Grid Grouping Control.Now the probelm is that one blank row is getting displayed at the very first in both parent and child in Datagrid.Also i have one boolean column in child table which is getting displayed as checkbox in datagrid but the probelm is that whenever i click on checkbox one row gets added at the bottom of the datagrid.Please help me out.It is really urgent for me.

With Warm Regards,
Manish Bafna

1 Reply

AD Administrator Syncfusion Team March 5, 2007 02:52 PM UTC

Hi Manish,

This is a default behavior. If you want to remove the AddNewRow(Blank Row) in the top section of the group, you can set the ShowAddNewRecordBeforeDetails and ShowAddNewRecordAfterDetails property to false. Here is a code snippet

//For Main Groups
this.grid.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = false;
this.grid.TopLevelGroupOptions.ShowAddNewRecordAfterDetails = false;

//For Main Groups
this.grid.NestedTableGroupOptions.ShowAddNewRecordBeforeDetails = false;
this.grid.NestedTableGroupOptions.ShowAddNewRecordAfterDetails = false;


//For Child Groups
this.grid.ChildGroupOptions.ShowAddNewRecordBeforeDetails = false;
this.grid.ChildGroupOptions.ShowAddNewRecordAfterDetails = false;

Best regards,
Haneef

Loader.
Up arrow icon