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
100
How to disable UltraGrid columns autoFit to Grid width
posted

I have datasource with dozen of columns.

I'd like to fit columns' width to its content by  executing below code


DisplayLayout.AutoFitStyle     = Infragistics.Win.UltraWinGrid.AutoFitStyle.None;
foreach (UltraGridColumn column in Columns) column.PerformAutoResize( PerformAutoSizeType.VisibleRows, includeHeader  );

it seems working but my problem is that I all columns are 'scaled' to grid's width (so If I enlarge form where grid resides I can see all cells)
I need all columns and content to be fully shown + horizontal scroll bar 

Parents
No Data
Reply
  • 469350
    Offline posted

    My guess is that you are setting AutoFitStyle in some other place in your code, after you set it to None. 
    Or perhaps you are not setting it directly, but maybe you are loading a Layout into your grid that is setting it. 

Children
No Data