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.

remove a row from gcc and dataTable

Thread ID:

Created:

Updated:

Platform:

Replies:

66509 Jul 30,2007 11:51 AM Jul 31,2007 12:11 PM Windows Forms 3
loading
Tags: GridControl
Wen Jiang
Asked On July 30, 2007 11:51 AM

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 01:06 PM

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 10:24 AM

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 12:11 PM

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.

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.

;