Hi All,
How to handle WPF datagrid row double click event? I tried with PreviewMouseClick. But it is getting throwed when clicked on header also.
Private Sub dbGrid_PreviewMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles dbGrid.PreviewMouseDoubleClick If Not dbGrid.SelectedItem Is Nothing Then MsgBox(DirectCast(DirectCast(DirectCast(dbGrid.SelectedItem, System.Object), System.Data.DataRowView).Row, System.Data.DataRow).ItemArray(0).ToString) End If e.Handled = True
End Sub
How to handle it only for datagrid row?
Regards
VIJI RAJKUMAR Pls rate my Answer if it was supportive http://vijirajkumar.blogspot.com
|
No responses found. Be the first to respond and make money from revenue sharing program.
|