I'm working on manipulating the gridview to open a different kind of database system that I use called Codebase. All is going well, but when I click the edit button after it's autogenerated the update button does not show. Any ideas why?
Here is my code so far
Private Sub MyGridView_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles Me.RowEditing Me.EditIndex = e.NewEditIndex Me.Rows(Me.EditIndex).RowState = DataControlRowState.Edit End Sub Private Sub MyGridView_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles Me.RowCancelingEdit Me.EditIndex = -1 e.Cancel = True Me.Rows(e.RowIndex).RowState = DataControlRowState.Normal End Sub
Would databinding cause any problems?
I figured it out! I forgot to Databind after setting my new edit index on my gridview! I feel so darn stupid now lol, but hopefully somebody else finds this extremely useful.
This post has been edited by trevster344: 05 March 2013 - 04:39 PM