Disable the resizing of rows and columns

18 Nov 20181 minute to read

This page explains how to disable the resizing of rows and columns in WinForms GridGroupingControl and more details.

How to disable the resizing of rows and columns in WinForms GridGroupingControl

This can be done using the below code.

  • C#
  • //Code to disable the resizing of rows.
    this.gridGroupingControl1.TableModel.Options.ResizeRowsBehavior = Syncfusion.Windows.Forms.Grid.GridResizeCellsBehavior.None;
    
    //Code to disable the column resizing.
    this.gridGroupingControl1.TableModel.Options.ResizeColsBehavior = Syncfusion.Windows.Forms.Grid.GridResizeCellsBehavior.None;
  • VB.NET
  • 'Code to disable the column resizing.
    Me.gridGroupingControl1.TableModel.Options.ResizeColsBehavior = Syncfusion.Windows.Forms.Grid.GridResizeCellsBehavior.None
    
    'Code to disable the resizing of rows.
    Me.gridGroupingControl1.TableModel.Options.ResizeRowsBehavior = Syncfusion.Windows.Forms.Grid.GridResizeCellsBehavior.None