上一页 1 ··· 346 347 348 349 350 351 352 353 354 ··· 397 下一页
  2013年7月24日
摘要: 一、如何从 Datagrid 中获得单元格的内容 DataGrid属于一种ItemsControl,因此,它有Items属性并且用ItemContainer封装它的items.但是,WPF中的DataGrid不同于Windows Forms中的DataGridView。在DataGrid的Items集合中,DataGridRow是一个Item,但是,它里面的单元格却是被封装在DataGridCellsPresenter的容器中;因此,我们不能使用像DataGridView.Rows.Cells这样的语句去获得单元格的内容。但是,在WPF中我们可以通过可视树(VisualTree)去进入到控.. 阅读全文
posted @ 2013-07-24 09:50 记性特差 阅读(1187) 评论(0) 推荐(0)
上一页 1 ··· 346 347 348 349 350 351 352 353 354 ··· 397 下一页