Home Forums WPF controls Xceed DataGrid for WPF Accessing a control (Progressbar) in a cell in the grid

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

    Hi All,

    How can I access a control in a grid i.e. a progress bar that is located in a grid

    How I set an event for a button in a cell and how I get different event from each button on one column?

    Thanks for your help,

    Imported from legacy forums. Posted by Beni (had 1908 views)

    Xceed Support
    Post count: 5658

    You can always dig the VisualTree using the VisualTreeHelper but my best recommendation would be to place a handler for an event that is significant to you on the control in question and handle your logic from the handler (e.g Loaded event, … ).

    Concerning events… You will receive in the EventArgs for your button’s event the Button that was clicked… From that point, you can reverse engineer the Cell, Column and Row by looking up in the VisualTree of the Button.

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

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