Hi Person,
You cannot insert a row into a GridGroupingControl. You must insert it into your DataTable. A GridGroupingControl normally holds no data. The data comes from the datasource and is just displayed in the grid. You cannot add a row in the middle of the grid, because the data in the middle of the grid comes from the datatable.
If you need this functionality, you might consider using a GridControl as this control does store data inside the grid, and can easily insert rows using the method you mentioned.
Best Regards,
Jeba.
Hi Sir
I added a GridGroupControl to my Form. Then I added some Columns to TableDescriptor of this grid. Then I want to add a new record to this grid in end of grid rows.This grid doesn't have any record (row) yet, and I suppose to add first record (row) to this grid. Your code Below didn't work to me.
In TableDescriptor Allow New is True. ChildernGroupeOption in TableDescriptor AddNewRecordBeforeDetails is True. In TableDescriptor We have 10 Columns and We don't ColumnSet, TopLevelGroupOption AddNewRecordBeforeDetails is True.
In main Grid (Not TableDescriptor) TableOption is Ok, and TopLevelGroupOption AddNewRecordBeforeDetails is True.
How Can I add a row to this table?