在WPF数据网格中获取单元格值

编程入门 行业动态 更新时间:2024-10-27 00:25:05
本文介绍了在WPF数据网格中获取单元格值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嘿所有, 在我的WPF应用程序中,我有一个数据网格,现在我想得到一个单元格的值。 我已经尝试了几十种可能的解决方案但是没有一种能够正常工作。 你能帮助我吗? Greetz,A

解决方案

此讨论 [ ^ ]可以帮助你。

哇,根据social.msdn.microsoft/Forums/en/wpf/thread/74332b78-6bfd-4ac9 -af85-dfd9bec87a29 [ ^ ],这不是应该的那么简单。

Colin Eberhardt在WPF数据网格上写了一篇很好的文章WPF DataGrid实际示例 [ ^ ] - 我会在直接使用单元格之前查看数据绑定。 最好的问候 Espen Harlinn

Hey all, In my WPF application I have a datagrid and now I want to get the value of a cell. I have tried dozens of possible solutions but none of them are working. Can you guys help me out? Greetz, A

解决方案

This discussion[^] could help you out.

Wow, according to social.msdn.microsoft/Forums/en/wpf/thread/74332b78-6bfd-4ac9-af85-dfd9bec87a29[^], that's not as trivial as it should be.

Colin Eberhardt did a nice article on the WPF datagrid WPF DataGrid Practical Examples[^] - I would certainly look at databinding before working directly with the cells. Best regards Espen Harlinn

更多推荐

在WPF数据网格中获取单元格值

本文发布于:2023-11-23 02:07:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1619705.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网格   单元格   数据   WPF

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!