Link to home
Start Free TrialLog in
Avatar of awolarczuk
awolarczukFlag for Australia

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
Avatar of Mrunal
Mrunal
Flag of India image

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

Avatar of awolarczuk

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
This is what i have but when i client on the Grid view it doenst seem to do anything


    Protected Sub gvItems_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvItems.SelectedIndexChanged
        ' 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
Avatar of Mrunal
Mrunal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial