Hello,
For our application we use a XamDataGrid to display hierarchical data.
One of the requirements is that when the user double clicks on a row in a subgrid a new window should open (ability to execute code)
Is it possible to achieve this?
Thanks in advance!
Thank you for reply. I have been reading through it and if I understand correctly you wish to have hierarchy displayed in your XamDataGrid and only if you click on a record of the child level to open a Window and do something with the child row in it. If this is correct, you can use the same approach as I have suggested and check whether the record of the cell that you are double-clicking has a parent. Before opening the Window, you can get the record by using the CellValuePresenter.Record property. I am attaching a modified version of the sample that shows how you can implement this approach.
Please let me know if this is what you are looking for, or I have misunderstood you in any way.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
I'm sorry but this isn't really what I meant.
(from the sample) In the MainWindow the grid contains hierarchical data (1 level deep). So the windows contains a grid that has a subgrid for each row.
If the user clicks on one of the subrows (a row from the subgrid belonging to a row) I'd like to be able to execute code based on the selected row in the subgrid.
Kind regards
Thank you for your email. I have been looking into the question that you are having and I have created a sample application that shows how you can open a new Window with the child layout, when you double click on a record of the XamDataGrid.
Please let me know if you need any further assistance on the matter.