Showing posts with label grid. Show all posts
Showing posts with label grid. Show all posts

Friday, 14 October 2011

DevExpress, GridControl, how the Best Fit Column feature works

The property GridView.BestFitMaxRowCount indicates how many rows will be processed in order to adjust the best column width.
  • -1 means that all row will be processed
  • 0 nothing
  • Any other value indicates how many will be processed
For performance issues apply a small number or apply 0.
Important note: If auto width is enabled, a column's GridColumn.Width property doesn't contain its visible width, but the value used when auto width is false, so that a column's layout can be restored. A column's visible width is available via its GridColumn.VisibleWidth property.