Hi,
I select several lines in my grid and "xdgMedias.SelectedItems.Records.Count" is = 0 !!
Is it normal ?
I would like to know the number of selected records !
My grid definition :
<igDP:XamDataGrid x:Name="xdgMedias" Grid.Row="2" DataSource="{Binding Source={StaticResource MusicViewContentDataSource}}" Background="#FF4F4D4C" OverridesDefaultStyle="False" IsGroupByAreaExpanded="False" IsNestedDataDisplayEnabled="True" GroupByAreaLocation="None"> <igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Settings> <igDP:FieldLayoutSettings HighlightAlternateRecords="True" SelectionTypeRecord="Extended" SelectionTypeField="None" SelectionTypeCell="None" AutoGenerateFields="False"/> </igDP:FieldLayout.Settings> <igDP:FieldLayout.Fields>
Try this,
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings CellClickAction="SelectRecord"/></igDP:XamDataGrid.FieldSettings>