Redirect to a different page when a row is selected
New DiscussionI would like the grid to work in a way so that the user clicks on a row and the row is selected and then I need to redirect to another page based on which row the user selects. In example: if there are three columns, Member ID, Member Name and DOB and the Member ID is the DataKeyField. When the user clicks on a row, I want to redirect to another page…but I’m sending the value of the Member ID field as a querystring when redirecting to the other page. Any suggestions?
Using the UltraWebGrid, I used to accomplish this in the Click event with the following code…but I can’t get it to work using the WebDataGrid:
Protected Sub grid_Click(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.ClickEventArgs) Handles grid.Click
Response.Redirect(“Summary.aspx?Member_ID=” & e.Row.Cells.FromKey(“Member_ID”).Value)
End
Sub