awolarczuk
asked on
How to do a Client Event on a Gridview on asp.net
Hi all i ma doiugn a project wwhere i need have a click event on a gridview i need to run a query based on the details on col 0 {Staff id} and opass the data to anothe form
ASKER
Hi there mroonal: ithanks for getting bacl to me i want to use a gridview list and i want to be able to client on it and take the number from teh first colume of the row i client on and run pass it to a page and then from that other page run a sql query to fill in the page
Does that help
Does that help
ASKER
This is what i have but when i client on the Grid view it doenst seem to do anything
Protected Sub gvItems_SelectedIndexChang ed(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvItems.SelectedIndexChang ed
' Get the currently selected row using the SelectedRow property.
Dim row As GridViewRow = gvItems.SelectedRow
' Display the company name from the selected row.
' In this example, the third column (index 2) contains
' the company name.
MsgBox("You selected " & row.Cells(2).Text & ".")
End Sub
Protected Sub gvItems_SelectedIndexChang
' Get the currently selected row using the SelectedRow property.
Dim row As GridViewRow = gvItems.SelectedRow
' Display the company name from the selected row.
' In this example, the third column (index 2) contains
' the company name.
MsgBox("You selected " & row.Cells(2).Text & ".")
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Can you please explain more, from client side you want to pass just parameter and aslo want to navigate on next page also?
Also do you want any link or something on which you want to click and proceed further?