关于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));
}
}

最新文章

  1. jquery id选择器 id带&quot;.&quot;问题
  2. Winform中调用js函数
  3. 根据Ip获取城市帮助类
  4. Ubuntu声音消失
  5. Function.prototype.apply()
  6. 50个android开发技巧
  7. OSG中的视角 eye up center
  8. BZOJ 3112 Zjoi2013 防守战线 单纯形
  9. Java数据结构与算法(21) - ch09红黑树(RB树)
  10. MySQL引擎介绍ISAM,MyISAM,HEAP,InnoDB
  11. iOS tableView刷新
  12. C3P0 WARN: Establishing SSL connection without server&#39;s identity verification is not recommended
  13. UWP 绘制图形
  14. visual studio 不能跳转到函数定义
  15. ubuntu 安装配置 mysql
  16. Python 队列
  17. 一条命令,根据进程名判断有进程输出up,无进程无输出
  18. 廖雪峰Java1-3流程控制-3条件判断
  19. java中sleep()方法的解析
  20. 44、File类简介

热门文章

  1. Codeforces Round #369 (Div. 2) D. Directed Roads (DFS)
  2. 畅通工程续 (dijkstra)
  3. PAT (Advanced Level) 1023. Have Fun with Numbers (20)
  4. dedecms如何修改共0页/0条记录为英文版?
  5. wireshark tls
  6. Quick Cocos2dx CCLuaStack has no member names &#39;loadChunksZip&#39;
  7. 13、手把手教你Extjs5(十三)模块字段和Grid列的定义[1]
  8. python处理时间--- datetime模块
  9. FZU 2099 魔法阵
  10. Undefined symbols for architecture i386: &quot;_crc32&quot;, referenced from:——crc链接错误