Home › Forums › WPF controls › Xceed DataGrid for WPF › Column Resize Event
Is there an event (and on which property/class) to know when a column in the datagrid has been resized?
Imported from legacy forums. Posted by M (had 2553 views)
We have no such event at the moment, but I consider this as a valid suggestion and posted it in our feature request list.
ActualWidth property of the Column class is a DP, you can therefore use the DepedencyPropertyDescriptor class to register to the “changed” event from the DP:
<code> DependencyPropertyDescriptor myDescriptor = DepedencyPropertyDescriptor.FromProperty( Column.ActualWidthProperty, typeof( Column ) );myDescriptor.AddValueChanged( myColumn, new EventHandler( MyColumnWidthChangedHandler ) );</code>
Imported from legacy forums. Posted by Marcus [Xceed] (had 334 views)
Imported from legacy forums. Posted by M (had 3671 views)