Hello,
how can I set the width of a column in wingrid (width = length from the caption)?
gridLayout.Bands[0].Columns["test series"].Width = ??? length from the caption
The text of the values are very long. I must only see the caption from the column.
Alexander
Hi,
The AutoResizeColumnWidthOptions was just added recently. So you just need to get the latest service release.
How to get the latest service release - Infragistics Community
Hi Mike,
I have version 10.3.20103.1.
I get a error: "The name 'AutoResizeColumnWidthOptions' does not exist in the current context."
Hi Alexander,
If you have the latest version of the gird, you can do something like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; band.Columns["String 1"].PerformAutoResize(PerformAutoSizeType.None, AutoResizeColumnWidthOptions.IncludeHeader); }