GridView Handles RowEditing
-
Friday, September 07, 2012 5:39 PM
Event will not fire. I have the following code
'Declare GridView
Dim WithEvents gvMyGrid As New GridView
'Page Load Event
AddHandler gvMyGrid.RowEditing, AddressOf gvMyGrid_Edit
#Region "DataGridEditComments"
Protected Sub gvMyGrid_Edit(ByVal sender As Object, ByVal e As GridViewEditEventArgs) Handles gvMyGrid.RowEditing
gvMyGrid.EditIndex = e.NewEditIndex
gvMyGrid.DataBind()
End Sub
#End RegionUnfortunatly when I click on the "edit" button/link the method is not fired. Any help would be great.
Moojjoo MCP, MCTS
MCP Virtual Business Card
http://moojjoo.blogspot.com- Moved by Bob_BaoMVP Monday, September 10, 2012 7:23 AM (From:Visual Basic General)
All Replies
-
Friday, September 07, 2012 7:25 PM
The issue is I did not have a postback event that would perform a gvMyGrid.DataBind(), I added that to as:
If page.ispostback
gvMyGrid.DataBind() --- All Started working
Moojjoo MCP, MCTS
MCP Virtual Business Card
http://moojjoo.blogspot.com -
Monday, September 10, 2012 5:53 AM
Hi Õ¿Õ moojjoo Õ¿Õ,
Based on your description, this thread is related to ASP.NET, for this topic please go to http://forums.asp.net/ for support.
Thanks for understanding!
Shanks Zen
MSDN Community Support | Feedback to us

