Remove rows from datatable.
Hi..I want to remove rows from my datatable based on index values. For example from row 5 to row 10.But not by using for or foreach loop.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dhirendra MisraRank #4,173 · 360 reputationPosted Jan 12, 2014, 10:13 PM EST
You can add one column to your datatable which is unique / index or make use of any existing column which can help you to filter your the required records.
You can use DataView RowFilter to perform this.
Refer:
http://www.csharp-examples.net/dataview-rowfilter/
http://www.c-sharpcorner.com/UploadFile/jgodel/DataSetsOverview0611302005002923AM/DataSetsOverview06.aspx
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jan 13, 2014, 10:59 AM EST
http://www.c-sharpcorner.com/UploadFile/0f68f2/querying-a-data-table-using-select-method-and-lambda-express/
Then Use Remove(DataRow row) method to remove them.