Version

We recommend that you use the xamDataGrid control instead of the xamGrid control. The xamGrid is being planned for retirement over the next few years and will not receive any new features. We will continue to provide support and critical bug fixes for the xamGrid during this time. For help or questions on migrating your codebase to the xamDataGrid, please contact support.

Multi-Column Resizing

The xamGrid™ control allows your end user to resize more than one column at once. To do this you must select multiple columns and then resize one of the selected columns. All the selected columns will then resize to the same width.

You must enable selection to use multi-column resizing. For more information, see the Selection topic.

To enable this, you can set the ColumnResizingSettings object’s AllowMultipleColumnResize property to True.

In XAML:

<ig:XamGrid x:Name="MyGrid">
    <ig:XamGrid.ColumnResizingSettings>
        <ig:ColumnResizingSettings AllowColumnResizing="Indicator"
                                   AllowMultipleColumnResize="True"/>
    </ig:XamGrid.ColumnResizingSettings>
   <!-- Enable Column Selection -->
   <ig:XamGrid.SelectionSettings>
       <ig:SelectionSettings CellSelection="Multiple"
                             ColumnSelection="Multiple" RowSelection="Multiple"/>
   </ig:XamGrid.SelectionSettings>
</ig:XamGrid>

In Visual Basic:

Me.MyGrid.ColumnResizingSettings.AllowMultipleColumnResize = True
' Enable Column Selection
Me.MyGrid.SelectionSettings.ColumnSelection = SelectionType.Multiple

In C#:

this.MyGrid.ColumnResizingSettings.AllowMultipleColumnResize = true;
// Enable Column Selection
this.MyGrid.SelectionSettings.ColumnSelection = SelectionType.Multiple;