Getting a DataRow From A DataTable

  • Thread starter Thread starter Eyal Cohen
  • Start date Start date
E

Eyal Cohen

Hello,
I Have A Datatable With Rows Full With Data and i want
to get or address a specific row using an index number.
i vb.net its easy but in c# i cant use a number to get the
specific row i want.
i want to do something like datarow=Datatable.rows(4)
to get row number 4
thanks

Eyal
 
Hello,
I Have A Datatable With Rows Full With Data and i want
to get or address a specific row using an index number.
i vb.net its easy but in c# i cant use a number to get the
specific row i want.
i want to do something like datarow=Datatable.rows(4)
to get row number 4
thanks

Eyal

DataRow dr = myDataTable.Rows[4]
 
-----Original Message-----
[email protected]:

Hello,
I Have A Datatable With Rows Full With Data and i want
to get or address a specific row using an index number.
i vb.net its easy but in c# i cant use a number to get the
specific row i want.
i want to do something like datarow=Datatable.rows(4)
to get row number 4
thanks

DataRow dr = myDataTable.Rows[4]

--
best regards

Peter Koen
-----------------------------------
MCAD, CAI/R, CAI/S, CASE/RS, CAT/RS
http://www.kema.at
.
Thanks Peter
It wa one of those syntax things that i just didnt find
thanks
 
Back
Top