if (datatable1 !=null) { foreach (DataRow dr i datatable1.Rows) { string text1 = dr["Column1Name"].ToString(); string text2 = dr["Column1Name"].ToString(); // and so on //You can also set your Literal cotrol as } }
Tuesday, April 16, 2013
Looping through DataSet in C#
To loop through DataTable, try this
0 comments:
Post a Comment