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
90
xamGrid: How do you prevent columns from disappearing without setting MinimumWidth on each column?
posted

We have an issue where users' columns are disappearing when they drag/resize them too close together. 

Obviously, if we set a minimum width for every column in every grid in the application or bind the columns to a control template it can be controlled, but is there a setting at the xamGrid level that will prevent this from happening?

Thanks,

David

Parents
No Data
Reply
  • 17475
    Offline posted

    Hello David,

    The ColumnResizing event is fired before the column is resized. The event could be canceled if the Width is smaller than a certain value. This will be applied for all column in the grid.

    private void xamGrid1_ColumnResizing(object sender, Infragistics.Controls.Grids.CancellableColumnResizingEventArgs e)
            {
                if (e.Width < 100)
                    e.Cancel = true;
            }

    Please do not hesitate to let me know if you have any other questions or concerns.

Children