My application needs to adjust the content of the grid when users hide or show columns on DataGrid; specifically when a column of distinct content is hidden, I want to remove the duplicated rows that have identical content on the shown columns.
I am think of registering a handler when the showing status of columns are changed but cannot find an appropriate event. So my questions are:
- What is the event for column show and hide?
- Are there other better ways of doing this?