tags:

views:

72

answers:

2

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
+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.