从智能设备应用程序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 属性来确定已聚焦的行,然后从该行中选择所需的值。
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.