wallaceoc80
Programmer
I'm using a DataSet to retrive data from a Database and access the values of the columsn returned. I then want to set the Text of various labels to the values of the columns. To do this I use to code below
The problem is that it sets the text of the labels to the column names and not the values. Am I using the wrong code?
Thanks,
Wallace
Code:
appID.Text = dsAppData.Tables[0].Columns[0].ToString();
appName.Text = dsAppData.Tables[0].Columns[1].ToString();
gripsID.Text = dsAppData.Tables[0].Columns[2].ToString();
The problem is that it sets the text of the labels to the column names and not the values. Am I using the wrong code?
Thanks,
Wallace