Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1564
SelectedItems.Records.Count = 0 !!!! With selection !!!!
posted

 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>

Parents
No Data
Reply
  • 470
    posted

    Try this,

    <igDP:XamDataGrid.FieldSettings>

               <igDP:FieldSettings CellClickAction="SelectRecord"/>

    </igDP:XamDataGrid.FieldSettings>

     

Children
No Data