When you click on any part of the row in the data grid, I want the 'record' to become selected.
So I tried
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings
SelectionTypeCell="None"
SelectionTypeRecord="Extended" />
</igDP:XamDataGrid.FieldLayoutSettings>
This disables the 'Cell' selection. When you click on a cell, it looks like the whole row (record) is selected, but no SelectedItemsChanged event is fired (for either the record or the cell). And extended selection ('shift' and 'ctrl') does nothing (only one row is highlighted).
So I thought that maybe I could mark the record as selected (in code) whenever a 'Cell' selected event fired. So I tried:
{
}
But this causes exceptions, so it is obviously not a good way to proceed.
Any other ideas?
Thanks,
Robson
Im doing the same thing on my Grid.
I want the Cell Select to act like a row select.
You can do it in the Xaml or in the C# using the FieldSettings.
this.DataGrid.FieldSettings.CellClickAction = CellClickAction.SelectRecord;
Thanks for this solution. To accomplish it in xaml, use this:
<igDP:XamDataGrid.FieldSettings>
LabelClickAction="Nothing"
CellClickAction="SelectRecord"
AllowEdit="False" />
</igDP:XamDataGrid.FieldSettings>