Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to bind check box, radio button and combo box in datagrid using WCF,C# and EntityFramework

$
0
0

I am using Datagrid to edit and delete the row from a Datagrid. I designed checkbox, radio button and combo box using datagrid Template Column, for e.g.

 <DataGridTemplateColumn>
                            <DataGridTemplateColumn.Header>
                                <CheckBox Content="Branch Act"></CheckBox>
                            </DataGridTemplateColumn.Header>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <CheckBox IsChecked="{Binding BRANCH_ACT, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" IsThreeState="False"/>
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
In a design view the This checkbox control contains 2 checkbox option, 1) YES and 2) NO. In database BRANCH_ACT column contains the value Y and N. I have to bind the value in a datagrid when it is loaded and it will change when user will edit in datagrid as per the requirement, in the same way it should work for combo box and radio button.

kindly suggest me the source code for related to this thread.


Musakkhir Sayyed.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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