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