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
665
Which event can I handle to know when a column has been resized?
posted

I have a UltraGrid the row layout style set as below.

grid.DisplayLayout.Bands[0].RowLayoutStyle = RowLayoutStyle.GroupLayout;

Usually when I want to perform an action on column resize I use the AfterColPosChanged event. However this event is not fired and testing suggests it is due to the RowLayoutStyle being set.

What event can I handle when the row layout style is set to GroupLayout?

Thanks
Paul 

Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    Hello Paul,

    You could use the 'AfterRowLayoutItemResized' event for that matter.

    If you would like to catch when a column is resized, you could use a check-up like the following:

    if (e.ResizeType == RowLayoutItemResizeType.SizeChange && e.RowLayoutItem.GetType() == typeof(UltraGridColumn) || e.RowLayoutItem.GetType() == typeof(Infragistics.Win.UltraWinGrid.ColumnHeader))

    {

    //Your code here...

    }

    Please feel free to let me know if I misunderstood you or if you have any other questions.

Children