By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,882 Members | 2,460 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,882 IT Pros & Developers. It's quick & easy.

Deleting Rows from a DataTable...

P: n/a
Hi,

I am reiterating through a Datatable and deleting few rows based on
the user's selection (with the index ref). I use
datatable.rows[index].Delete() for this purpose. But if I select three
rows, it just deletes only two rows; any idea ?.

Any help is much appreciated. Thanks.

Karthick

Feb 14 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Also, sometimes when I delete three or two rows, it just deletes only
one row randomly... Any idea about this issue ?.

Thanks.

Karthick
On Feb 14, 8:31 pm, "karthick" <karthick.tho...@gmail.comwrote:
Hi,

I am reiterating through aDatatableanddeletingfewrowsbased on
the user's selection (with the index ref). I usedatatable.rows[index].Delete() for this purpose. But if I select threerows, it just deletes only tworows; any idea ?.

Any help is much appreciated. Thanks.

Karthick

Feb 14 '07 #2

P: n/a
Ben

Can you post some sample code?
*** Sent via Developersdex http://www.developersdex.com ***
Feb 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.