Changing Field, Record, or Cell Selection Behavior
The following procedure assumes you have a data bound xamDataGrid for which you want to change the selection behavior. For more information on data binding xamDataGrid, see Adding xamDataGrid to Your Page. The settings in this procedure would be similar to those of xamDataCarousel and xamDataPresenter.
To change the selection type for cells, records, and fields:
-
Set the SelectTypeCell and SelectionTypeRecord properties to Extended off the xamDataGrid instance. These properties allow the end user to select multiple cells or records at the same time. Set the SelectTypeField property to Single if you want the end user to select only one field at a time.
Note
|
Note
The SelectTypeField setting will work only if you already set the LabelClickAction property to SelectField.
|
<igDP:XamDataGrid ... >
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings
SelectionTypeCell="Extended"
SelectionTypeRecord="Extended"
SelectionTypeField="Single" />
</igDP:XamDataGrid.FieldLayoutSettings>
</igDP:XamDataGrid>
-
Build and run the project. When you select multiple records with either the CTRL or SHIFT keys, the records will be highlighted similar to the image below.