可编辑复选框,单选按钮,组合框,日历等。 [英] Editable checkbox,radio button, combo box, calender etc.
本文介绍了可编辑复选框,单选按钮,组合框,日历等。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
需要使用WPF的数据网格控件中的可编辑复选框,组合框,日历,单选按钮的代码示例,C#Tookit.dll
Need a Sample of Code for Editable Checkbox, Combo box, Calender, radio button in dataGrid Control using WPF,C# Tookit.dll
推荐答案
这是一个示例一个组合框,其他工作方式类似。
Here's an example of a combo box, the others work similarly.
<DataGrid.Columns>
<datagridtemplatecolumn.celleditingtemplate>
<datatemplate>
<combobox height="22" name="cmbSelectedColumn">
SelectedValue="{Binding ColumnId}"
SelectedValuePath="Id"
DisplayMemberPath="Name"
ItemsSource="{DynamicResource AvailColumns}"
SelectionChanged="cmbSelectedColumn_SelectionChanged" />
</combobox></datatemplate>
</datagridtemplatecolumn.celleditingtemplate>
这篇关于可编辑复选框,单选按钮,组合框,日历等。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文