I have a WebGrid that has a "Row_ID" field. The field is a hyperlink. When the user clicks on this field, I want it to open the WebDialogWindow and that WebDialogWindow will have a grid of some sort that is attached to a SQLDataSource that will pull certain information based on the value of the "Row_ID" field from the WebGrid. I'm just not sure how to go about doing this. The Row_ID field does not have to be a hyuperlink...if there is a better way of doing this...but I want the user to know that they can click on the field to see whis other information.
Hello,
Were you able to accomplish this using the code that was provided?
Let me know if I can be of any further assistance.
Sincerely,Duane
don't think he plans to do it without a postback..
since the wdw with grid has to pull data based on the id..
Is it just me or is no one seeing the easy way out?
CHP.. put a tag on the click event of the grid row.. then grab the id field. pass it to a sub,, load your wdw, pass the id to your sqlcontrol and QED..
You basically have to grab the ID field value when the user clicks on the row or the cell.
grid_dblClick event would do fine for you..
..dgrid.DisplayLayout.ActiveRow.Selected = True yourvariablefieldname = grid.DisplayLayout.SelectedRows.Item(0).Cells(1).ToString()
then pass "yourvariablename" to whatever function or routine you have to show the wdw..assign the id, etc..