Hi,

I have a GridView with seven columns of data and in the eighth column
I have two linkButtons: EditButton and DeleteButton. The GridView is
being bound in the code behind.

When I click on EditButton, the row [corresponding to the row in which
the button I clicked is] is supposed to change to edit mode. I'm
having a hard time trying to do this. My last try was using this code:

Protected Sub EditButton_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
        Dim row As GridViewRow = sender.parent.parent
        row.RowState = DataControlRowState.Edit
        BindMyGridView()
End Sub

But nothing happens. ANy suggestions of how to achieve my goal?

Thanks,

Ana

Reply via email to