WPF Devexpress Datagrid checkbox binding


We can easily bind the checkbox on devexpress datagrid


 <dxgcore:GridColumn Width="20"  
                     AllowEditing="True"  
                     Binding="{Binding Path=IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  
                     Header="R"  
                     Visible="{Binding CheckboxSelection}"  
                     VisibleIndex="6">  
             <dxgcore:GridColumn.CellTemplate>  
               <DataTemplate>  
                 <dxe:CheckEdit HorizontalAlignment="Center"  
                         VerticalAlignment="Center"  
                         Command="{Binding Path=View.DataContext.IsCheckedCommand}"  
                         CommandParameter="{Binding RowData.Row}"  
                         IsChecked="{Binding RowData.Row.IsChecked, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"  
                         IsEnabled="{Binding Path=View.DataContext.IsCheckBoxEnabled, UpdateSourceTrigger=PropertyChanged}" />  
               </DataTemplate>  
             </dxgcore:GridColumn.CellTemplate>  
           </dxgcore:GridColumn>  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

mvc razor textboxfor change event change another textboxfor value

ASP.NET MVC razor SAP Crystal report