Hi, i have what i consider a silly problem..... I'm trying to find the data that is in a certain cell in the datagrid. I was using the below
Now i SWEAR that was working, i've come back to it after playing around with something else and its not working... however i am SO sure it was...
Firstly, could someone please tell me whether that would be the right code to retrieve the data and put it into the label. Currently this doesnt work, and i cant for the life of me figure out why, it doesnt cause an error, it just displays blank. And yes there is data in the table even after allowing for arrays starting at 0.
Secondly, if this code is right, what could of stopped it from working?
Thanks.
Visual Basic:
Label20.Text = dgDepartments.Items(2).Cells(2).Text
Now i SWEAR that was working, i've come back to it after playing around with something else and its not working... however i am SO sure it was...
Firstly, could someone please tell me whether that would be the right code to retrieve the data and put it into the label. Currently this doesnt work, and i cant for the life of me figure out why, it doesnt cause an error, it just displays blank. And yes there is data in the table even after allowing for arrays starting at 0.
Secondly, if this code is right, what could of stopped it from working?
Thanks.