One trick I have used is this:
Add a non-visible select column to your grid:
<asp:buttoncolumn text="Select" commandname="Select" visible="False" />
Then in the codebehind, you can get at the select button in the appropriate cell and assign its client-side event handler code to the row's double click event. You'll have to do that in the page's pre-render event handler because of the way the datagrid control structure is built.
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.PreRender
For Each objItem As DataGridItem In DataGrid1.Items
Select Case objItem.ItemType
Case ListItemType.AlternatingItem, ListItemType.Item
objItem.Attributes("ondblclick") = GetPostBackClientEvent(objItem.Cells(0).Controls(0 ), String.Empty)
End Select
Next
End Sub
-
Peter