Home Forums WPF controls Xceed DataGrid for WPF abt tracking particular event of data cell (click)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #24791 |

    I have created a data grid and bound with data.
    now I want to trace which particular cell is being clicked at run time.
    where i can also get the entire information about data row to show the content.
    how can i go for this?

    On more question that is there any possibility in Xceed to have nested datagrid.

    Imported from legacy forums. Posted by yogesh (had 513 views)

    Xceed Support
    Post count: 5658

    Click at RunTime:

    You can register a class-handler for the MouseDown or PreviewMouseDown events for the DataCell… Please refer to the MSDN documentation for EventManager.RegisterClassHandler().

    Accessing the Data Item for a DataRow:

    You can use the DataGridControl.GetItemFromContainer() to obtain the underlying Data Item for a given row/cell.

    Nested DataGrids:

    This is officially not support, however some people reported having no problems using nested DataGridControls… The rest is up to you.

    Imported from legacy forums. Posted by Marcus [Xceed] (had 2734 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.