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.

How do I delete a row from grid control?

Thread ID:

Created:

Updated:

Platform:

Replies:

68177 Sep 11,2007 08:40 AM Sep 11,2007 01:18 PM Windows Forms 1
loading
Tags: GridControl
Suhani
Asked On September 11, 2007 08:40 AM

Hi,

I need to delete a row from the grid control based on the row number selected.I am working on vb.net windows application.

Thanks,
Suhani

J.Nagarajan [Syncfusion]
Replied On September 11, 2007 01:18 PM

Hi Suhani,

You can delete a row from the grid control based on the row number selected. Please use the following code snippet

this.gridControl1.CurrentCell.MoveTo(1, 1);
int index = this.gridControl1.CurrentCell.RowIndex;
this.gridControl1.Rows.RemoveRange(index, index);

Please refer to the attached sample and let me know if you have any questions.

http://websamples.syncfusion.com/samples/Grid.Windows/F68177/main.htm

Regards,
Nagaraj

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.

;