Does any one have idea about how to select a specific row of datatable in asp.net 2.0 using C#?
How to select a datatable row at runtime in asp.net 2.0 using C#?
Hi,
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Dipankar Sana26 reputationPosted May 26, 2010, 3:14 AM EDT
DataTable Dt = new DataTable();
Dt.Rows[2].Delete();
Balamuruan B13 reputationPosted May 26, 2010, 6:03 AM EDT
In DataTable class , we have one Select function ,by using that function you can fetch the list of rows from datatable object.It is available in 3 types..see it in object browser
General syntax:
DataTable dt ;
dt = New DataTable()
DataRow dr[] = dt.Select("[TableId]=" + UrSearchKey)
ex:
dr=dt.Select("[StudentId]=" + "101")