I don’t your scenario but I have change your code like below this code
change your grid view to default edit mode

Protected Sub EditButton_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
       sender.EditIndex=e.RowIndex
       BindMyGridView()
End Sub
2009/12/23 Ana <[email protected]>

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



  --
 Regards
 *******************
 *C.Arun Kumar *
 *******************

Reply via email to