Alex Rivera | Logout

Get value of datarow in c#

Asked 2011-06-27T19:25:59.147
17

I have a question regarding DataRows. I have a DataTable which I then converted into a list of DataRow's. Now I want the string information stored in each DataRow. How can I do this? This is my code:

List<DataRow> list = dt.AsEnumerable().ToList();
c#
Edit
Report

1 Answer

1
    List<DataRow> list = dt.AsEnumerable().ToList();
    var mystring = list[0]["ColumnName"].ToString();
answered 2011-06-27T19:31:36.837

Your Answer