WPF dataGrid中的check的改变事件
关于datagrid信息:
<DataGridTemplateColumn Header="备注">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox IsChecked="{Binding IsChecked,Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Click="CheckBox_Click"></CheckBox>
<TextBlock Text="{Binding strNo}"></TextBlock>
</StackPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
类的改变事件:
public bool Checked2;
public bool IsChecked
{
set
{
Checked2 = value;
OnPropertyChanged("IsChecked");
}
get
{
return Checked2;
}
}
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
最新文章
- jquery id选择器 id带";.";问题
- Winform中调用js函数
- 根据Ip获取城市帮助类
- Ubuntu声音消失
- Function.prototype.apply()
- 50个android开发技巧
- OSG中的视角 eye up center
- BZOJ 3112 Zjoi2013 防守战线 单纯形
- Java数据结构与算法(21) - ch09红黑树(RB树)
- MySQL引擎介绍ISAM,MyISAM,HEAP,InnoDB
- iOS tableView刷新
- C3P0 WARN: Establishing SSL connection without server&#39;s identity verification is not recommended
- UWP 绘制图形
- visual studio 不能跳转到函数定义
- ubuntu 安装配置 mysql
- Python 队列
- 一条命令,根据进程名判断有进程输出up,无进程无输出
- 廖雪峰Java1-3流程控制-3条件判断
- java中sleep()方法的解析
- 44、File类简介
热门文章
- Codeforces Round #369 (Div. 2) D. Directed Roads (DFS)
- 畅通工程续 (dijkstra)
- PAT (Advanced Level) 1023. Have Fun with Numbers (20)
- dedecms如何修改共0页/0条记录为英文版?
- wireshark tls
- Quick Cocos2dx CCLuaStack has no member names &#39;loadChunksZip&#39;
- 13、手把手教你Extjs5(十三)模块字段和Grid列的定义[1]
- python处理时间--- datetime模块
- FZU	2099 魔法阵
- Undefined symbols for architecture i386: ";_crc32";, referenced from:——crc链接错误