<ig:XamGrid x:Name="MyGrid" AutoGenerateColumns="False"> <ig:XamGrid.RowSelectorSettings> <ig:RowSelectorSettings Visibility="Visible"/> </ig:XamGrid.RowSelectorSettings> … </ig:XamGrid>
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.
A row selector is an element that appears in front of each row in xamGrid™. Row selectors are primarily used for selecting or activating rows; however clicking a row selector allows you to perform any custom action on that row by handling the row selector’s event, for more information see the Handle Row Selector Events topics. You can also display row numbers in the row selectors.
To configure row selectors to automatically select rows when clicked, you must enable Row Selection, for more information, see the Selection topic.
Clicking on the row selector while activation is enabled activates the first cell in that row, for more information on enabling activation, see the Activation topic.
You can enable row selectors on the xamGrid by setting the RowSelectorSettings object’s Visibility property to Visible as demonstrated in the code below.
In XAML:
<ig:XamGrid x:Name="MyGrid" AutoGenerateColumns="False"> <ig:XamGrid.RowSelectorSettings> <ig:RowSelectorSettings Visibility="Visible"/> </ig:XamGrid.RowSelectorSettings> … </ig:XamGrid>
In Visual Basic:
Imports Infragistics.Controls.Grids ... Me.MyGrid.RowSelectorSettings.Visibility = Visibility.Visible
In C#:
using Infragistics.Controls.Grids; ... this.MyGrid.RowSelectorSettings.Visibility = Visibility.Visible;
The following screen shot displays xamGrid with the default settings for row selector.