So, in other words, the USER cannot resize a column at runtime, unless row zero is visible?
Thanks,
s.s.
>By default in a GridControl, if you place the cursor over the header border where the hidden column is, and you double click it, the hidden column will resize to what it was before it was hidden.
>
>In a GridDataBoundGrid, this behavior is not there by default. But you can add it by handling the ResizingColumns event.
>
>private void gridDataBoundGrid2_ResizingColumns(object sender, GridResizingColumnsEventArgs e)
>{
> int right = e.Columns.Right;
> GridDataBoundGrid grid = sender as GridDataBoundGrid;
> if(right < grid.Model.ColCount)
> {
> if(grid.Model.Cols.Hidden[right+1] && e.Reason == GridResizeCellsReason.DoubleClick)
> {
> grid.Model.Cols.Hidden[right+1] = false;
> e.Cancel = true;
> }
> }
>}
>