Hi,
I am using ultracombo box. All my drop downs will have the same schema. CodeID and Description.
I have created a Dataset which has a datatable ( CodeID and Description ) ( I dont have to use it)
I want the description column to size to fit the description. How do i do it?( I can set a max if needed)
the codeid will be small(5 or less)
Found it.. Thanks
private void ui_Stuff_InitializeLayout_1(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[1].PerformAutoResize(Infragistics.Win.UltraWinGrid.PerformAutoSizeType.AllRowsInBand); foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn column in e.Layout.Bands[0].Columns) { column.PerformAutoResize(Infragistics.Win.UltraWinGrid.PerformAutoSizeType.AllRowsInBand); switch (column.Key.ToLower()) { case ui_Stuff.DisplayMember.ToLower(): break; default: column.Hidden = true; break; } } }
Mike Saltzman"]I would use the InitializeLayout event of the combo and call PerformAutoResize on the column(s). Be sure to use the overload of PerformAutoResize that takes an enum and tell it to size based on all of the rows.
I would use the InitializeLayout event of the combo and call PerformAutoResize on the column(s). Be sure to use the overload of PerformAutoResize that takes an enum and tell it to size based on all of the rows.
Hi Mike,
There is not PerformAutoResize() method for the control nor there is a Columns property.
How should i call it. can you please give me a sample or tell me the name of the control/ member of cotrol that has the PerformAutoResize() method.
TIA