Fixed columns

To display important information that should always be visible, .Net Grid provides the ability to set any number of fixed columns in the header. Fixed columns are not moved during horizontal scrolling and are always visible. The number of fixed columns is defined by Header.FixedColumns.Count. Fixed columns can be enumerated via Header.FixedColumns property.

grid.Headers[0].FixedColumns.Count = 2; grid.Headers[1].FixedColumns.Count = 3;

.Net Grid supports two horizontal scrolling modes – Normal and Optimized. In the Normal mode scrolling .Net Grid works according to horizontal thumb position. In the Optimized mode, it tries to minimize unused space to the right of the last column. Try to minimize client area of the example window (just like on the screenshot), scroll to the right and toggle between these two modes – you will immediately see the difference!