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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

remove a row from gcc and dataTable

Thread ID:

Created:

Updated:

Platform:

Replies:

66509 Jul 30,2007 03:51 PM UTC Jul 31,2007 04:11 PM UTC WinForms 3
loading
Tags: GridControl
Wen Jiang
Asked On July 30, 2007 03:51 PM UTC

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

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

Wen Jiang
Replied On 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

Wen Jiang
Replied On 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

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

;