如何从一个WPF数据网格中的单元格读取值? [英] How to read value from a Cell from a WPF DataGrid?

查看:160
本文介绍了如何从一个WPF数据网格中的单元格读取值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何阅读单元格值形成一个WPF的DataGrid

How to read a cell value form a WPF DataGrid?

我在网上搜索,尝试任何可能的组合,并没有什么作品:

I search online and try any possible combination and nothing works:

Datagrid.Cells [..],DataGrid.Items.Cells [..],DataGrid.Rows ..,DataGrid.Items.Row ..
没有什么作品,我找不到它是MSDN或我不明白。我只需要读出一个细胞在DataGrid中简单的值。

Datagrid.Cells[..], DataGrid.Items.Cells[..], DataGrid.Rows.., DataGrid.Items.Row.. nothing works, I can't find it is MSDN or I don't understand it. I just need to read a value off a cell in DataGrid that simple.

怎么办呢?

推荐答案

勾选此

http://social.msdn.microsoft.com/Forums/en/wpf/thread/74332b78-6bfd-4ac9-af85-dfd9bec87a29

http://wpfadventures.wordpress.com/2008/12/02/wpf-datagrid-detecting-clicked-cell-and-row/

WPF工具包DataGrid中的SelectionChanged获取单元格值

这篇关于如何从一个WPF数据网格中的单元格读取值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆