Author: wallaceoc | Posted on: 9/6/2004 9:55:47 AM | Views : 326

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


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

Go to the complete details ...