如何从datagrid获取单元格值 [英] how to get cell value from datagrid
本文介绍了如何从datagrid获取单元格值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有
我很困惑如何从数据网格获取单元格值(不是DATAGRIDVIEW)
任何人都可以帮助我。谢谢
解决方案
您可以使用以下两个属性:
http://msdn.microsoft.com/en-us/library/wdze7s55.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/z5c4a30a.aspx [ ^ ]。
我会高度评价建议使用System.Windows.Forms.DataGridView
而不是System.Windows.Forms.DataGrid
哪个没有正式标记通过[Deprecated]
属性只是为了更好地向后兼容遗留代码,但不鼓励在新开发中使用:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.aspx [ ^ ]。
-SA
对不起,
我找到了解决方案。感谢
Dear all
I am confuse how to get the cell value from a datagrid (NOT DATAGRIDVIEW)
Can anyone help me. Thanks
解决方案
You can use on of these two properties:
http://msdn.microsoft.com/en-us/library/wdze7s55.aspx[^],
http://msdn.microsoft.com/en-us/library/z5c4a30a.aspx[^].
I would highly recommend to useSystem.Windows.Forms.DataGridView
instead ofSystem.Windows.Forms.DataGrid
which is not formally marked by the[Deprecated]
attribute only for better backward compatibility with legacy code, but is discouraged to be used in new development:
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.aspx[^].
—SA
Sorry all,
I had find the solution. Thanks
这篇关于如何从datagrid获取单元格值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文