In my current implementation, I spawn tabs and grids dynamically.
Basically, a new grid needs to be created by a double click on a any row of a previous grid and use the row data for other provessing.
this.AddHandler(DataGrid.MouseDoubleClickEvent, new RoutedEventHandler (Generic_DoubleClick));
This handles for any double click even outside the grid and not specifically for the grid.
I need to find a handler which can return the row values specifically to that grid. Please suggest a workaround or a easier way of doing this.
Thanks.
Handle the double click routed event from datagrid row of the datagrid.
In code behind
Bonus is
cellContentElementis the content element of the cell that was double clicked on the row … e.g. in case ofDataGridTextColumnit will beTextBlockin the cell.