remove a row from gcc and dataTable

Syncfusion 4.4.

I am looking for samlpe code that delete a rec from the gcc, and the corresponding row in the underlying dataSource dataTable is also deleted.

Thanks a lot!
Wen

3 Replies

HA haneefm Syncfusion Team July 30, 2007 05:06 PM UTC

Hi Wen,

You can try these code:

this.gridGroupingControl1.Table.TableDirty = true;
this.gridGroupingControl1.Table.Records[ recordindex ].Delete();
this.gridGroupingControl1.Table.EndEdit();
this.gridGroupingControl1.Refresh();

Best regards,
Haneef


WJ Wen Jiang July 31, 2007 02:24 PM UTC

Hi Haneef,

The following code doesn't solve my problem. Basically, I want to delete a row from the underlying dataTable of a gcc if I active a row and hit a the Key Delete. Then refresh the gcc, it will be done.

Thanks,
Wen


>Hi Wen,

You can try these code:

this.gridGroupingControl1.Table.TableDirty = true;
this.gridGroupingControl1.Table.Records[ recordindex ].Delete();
this.gridGroupingControl1.Table.EndEdit();
this.gridGroupingControl1.Refresh();

Best regards,
Haneef


WJ Wen Jiang July 31, 2007 04:11 PM UTC

Hi Haneef,

My problem is solved. Thanks.

Wen

>Hi Wen,

You can try these code:

this.gridGroupingControl1.Table.TableDirty = true;
this.gridGroupingControl1.Table.Records[ recordindex ].Delete();
this.gridGroupingControl1.Table.EndEdit();
this.gridGroupingControl1.Refresh();

Best regards,
Haneef

Loader.
Up arrow icon