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. Image for the cookie policy date

How do I delete a row from grid control?

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

1 Reply

J. J.Nagarajan Syncfusion Team September 11, 2007 05:18 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon