|
-
Jan 26th, 2016, 04:55 AM
#1
Thread Starter
New Member
Event handler
I use this code to obtain a selected data from GridView control.
I created a user control and reference it to ASPX page.
However, for some reason I can not access public methods IndexChanged to retrieve information of selected line.
What is wrong in the code?
*
User controls:
*
Public gridRow As GridViewRow
Public Event IndexChanged As GridViewSelectEventHandler
*
Protected Sub GridView_SelectedIndexChanged (sender As Object, e As EventArgs) Handles gv.SelectedIndexChanged
******* gridRow = Grid.SelectedRow
******* RaiseEvent IndexChanged (sender, e)
End Sub
*
ASPX page:
*
*
grid.IndexChanged - there is no such event in the selection (the grid is the name of the user control)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|