从智能设备应用程序datagrid读取数据 [英] read data from smart device application datagrid
本文介绍了从智能设备应用程序datagrid读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想从数据网格中读取数据,在智能设备项目中使用,没有datagrid1.rows.count的选项,我怎么能直接读取数据grom datagrid?请帮助
i want read data from a datagrid which using in smart device project,there is no option for datagrid1.rows.count,how can i read the data grom datagrid row wise?please help
推荐答案
您可以在数据网格上使用 CurrentCell 属性来确定已聚焦的行,然后从该行中选择所需的值。
< br $>
You can use CurrentCell propery on the datagrid to determin what row that has focused and then select out the wanted value from that row.
int row = dgJobList.CurrentCell.RowNumber;
int column = 9;
string cellValue = dgJobList[row,column].toString();
欲了解更多信息,请查看此信息。
从数据网格中检索数据
我希望这会对你有所帮助。
For more info check this.
Retrieving data from a datagrid
I hope this will help to you.
这篇关于从智能设备应用程序datagrid读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文