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
165
UltraGrid - Auto resize column behavior and PerformAutoResizeColumns
posted

Hello:

I have two application both using WinForms UltraGrid (ver 12.1) with multiple bands (max 10), App1 and App2.

1. In App1 when I auto resize by double clicking the column right boundary the column, the column resizes itself to fit the contents of the column, not the caption. In App2 the same action resizes to the caption width. How can I make App2 behave like App1?

2. Similarly I have the exact same code in both apps that does the resize. The same behavior happens as described in #1. How to fix that?

Exact same code in both apps:

_ultraGrid.DisplayLayout.Bands[0].PerformAutoResizeColumns(false, PerformAutoSizeType.VisibleRows, AutoResizeColumnWidthOptions.IncludeCells | AutoResizeColumnWidthOptions.IncludeHeader);

Thx

Parents Reply Children
No Data