Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
840
Field Resize Events
posted

Hi

I've seen posts regarding this from 2009 - has a FieldResize event been added yet?

 

Thanks

Parents
No Data
Reply
  • 28407
    posted

    HI,

     You can wire up the  Field's PropertyChanged Event.

     then inside the event  check out the e.propertyname field.

    xamDataGrid1.FieldLayouts[0].Fields[0].PropertyChanged +=

    new PropertyChangedEventHandler
    (MainWindow_PropertyChanged);

    void MainWindow_PropertyChanged(object sender, PropertyChangedEventArgs e)

    {

    //throw new NotImplementedException();

    MessageBox
    .Show(e.PropertyName);

     You will see LabelWithResolved and CellWidthRsolved names.

     Down side is this might fire often.

     Sincerely.

     Matt
    Developer Support Engineer

Children