Is there an event that is raised when a column is resized? If not, do you have any suggestions about how to get notified whenever a column is resized?
2 Answers, 1 is accepted
answered on 17 Jan 2009, 03:59 PM
We do not expose such an event at the moment. I found a relatively easy way to get notified when that happens. The header cells are placed in a Grid panel inside the header row. Each cell has a GridViewSplitter control beside it. A GridViewSplitter contains a Thumb control that we use for its DragDelta event. DragDelta is a bubbling event that you can handle on the RadGridView control:
This solution worked great, once I made a couple adjustments. When I ran the code, the OriginalSource of the event was already a GridViewHeaderSplitter object, so I got rid of that line of code. Also, the event seemed to get fired when the grid was scrolled too. Below is the code I ended up with.