Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: Not able to select all row of Datagrid [20736]

$
0
0
Can't able to select all row by Ctrl+A ,there are some rows which are missing from selection when i press Ctrl+A in datagrid.
Any suggestion
Comments: ** Comment from web user: ashu_avni **

I tried same dll with new app it works fine but when i using it in my existing application its not working properly.
I used data grid control as per MVVM approach
My code snippet:


<my:DataGrid Name="GridX" Grid.Row="0" Background="White" ItemsSource="{Binding Path=Xdata}" SelectedItem="{Binding SelectedX}"
IsReadOnly="True" AutoGenerateColumns="False" HeadersVisibility="Column" CanUserResizeColumns="True" helpers:MouseDoubleClickBehavior.DoubleClickCommand="{Binding Path=EditXCommand}"
SelectionMode="Extended" Margin="6,43,0,0" HorizontalGridLinesBrush="LightGray" VerticalGridLinesBrush="LightGray">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding Path=BulkDeleteXCommand, Mode=OneWay}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
<my:DataGrid.RowStyle>
<Style TargetType="{x:Type my:DataGridRow}">
<Setter Property="IsSelected" Value="{Binding IsSelected}"/>
<!-- or the IsCheckedm property -->
</Style>
</my:DataGrid.RowStyle>
<my:DataGrid.Columns>
<my:DataGridTextColumn Header="S.No" Binding="{Binding Path=SequenceNumber}"></my:DataGridTextColumn>
<my:DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"></my:DataGridTextColumn>
<my:DataGridTextColumn Header="Notes" Binding="{Binding Path=Description}"></my:DataGridTextColumn>
</my:DataGrid.Columns>
</my:DataGrid>

I also tried key down event on xaml but didn't succeed
Any suggestion pls


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>