Help On GridView

D

Dot Net Daddy

Hello,

I have a question about assigning a value in the selectedRow of a
gridview to another variables.


How can I do that?


I am trying the following but it wont work;


Protected Sub GridView1_SelectedIndexChanged(ByVal sender As
Object, ByVal e As System.EventArgs) Handles
GridView1.SelectedIndexChanged
Label1.Text = GridView1.SelectedRow.Cells(0).ToString
End Sub


Label1 gets the value: "System.Web.UI.WebControls.DataControlFieldCell"



actually I am trying to assign the value in the row as an ImageURL. I
think GridView should be able to do it, but I couldnt to either.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top