I have a DataTable that I populate from an SQL table with the following example columns
I populate a DataTable with rows of a specific type. I want to select rows 10-20 from my resulting DataTable:
Connect conn = new Connect(); SqlDataAdapter da = new SqlDataAdapter(SQL, conn.Connection()); //Creates data DataTable d = new DataTable(); da.Fill(d); DataRow[] result = d.Select();
In the code above, I skipped the main SQL, and currently I have no choice for my DataRow array. I cannot find a way to refer to line numbers.
So, for example, I'm looking for something like Select("rownum > X && rownum < Y")
I searched here for a number of other resources to no avail. Any tips will be really convenient or simply impossible.
c # select datatable
Dmckendrick
source share