I’m still somewhat new to wpf and the xceed wpfdatagrid, but I was wondering if someone could explain to me how I can bind an event to a specific column.
What I want to do is have the grid set in readonly mode as I do’t want the user able to change anything, but have one of the columns in the column collection allow the user to double click on one of the cells within that column and fire an event within my code and change the content of that column.
I know how to set events within styles, but am unsure how to apply the particular style to just 1 column within the code. If this isn’t the approach, I am also unsure how to set an event in a cellcontenttemplate.
Any help or suggestions would be greatly appreciated.
Imported from legacy forums. Posted by Jack2 (had 1943 views)
There is not style that can be applied to a particular Columns. Instead, what I suggest is to register to the DoubleClick event for the DataCell type and filter the messages received based on the DataCell.ParentColumn
Imported from legacy forums. Posted by Marcus [Xceed] (had 2937 views)