Home Forums WPF controls Xceed DataGrid for WPF Column Resize Event

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22190 |

    Is there an event (and on which property/class) to know when a column in the datagrid has been resized?

    Thanks

    Imported from legacy forums. Posted by M (had 2553 views)

    Xceed Support
    Member
    Post count: 5658

    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)

    User (Old forums)
    Member
    Post count: 23064

    Thanks

    Imported from legacy forums. Posted by M (had 3671 views)

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