I need to read value of the dataset. This dataset return many rows. and each rows have single value (Customer_Name)
A:
your question is not clear enough for me, but you can check these links, i am sure it will help:
http://www.asp.net/learn/data-access/
http://www.asp.net/learn/data-videos/
http://msdn.microsoft.com/en-us/library/system.data.dataset.aspx
Amr ElGarhy
2009-10-03 18:43:47
+3
A:
If you have one table in dataset and that table has one column you could do it like this:
foreach (DataRow row in dataSet.Tables[0].Rows)
{
string result = row[0].ToString();
}
Or:
foreach (DataRow row in dataSet.Tables["tablename"].Rows)
{
string result = row["columnname"].ToString();
}
Misha N.
2009-10-03 18:48:16