将所选行值分配给变量。 [英] Assigning selected row values to variables.

查看:102
本文介绍了将所选行值分配给变量。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我是Windows Mobile应用程序开发的新手。我正在开发一个适用于Windows Mobile 6.5的应用程序



我想在变量中存储数据网格中所选行的值。



任何人都可以帮忙。

解决方案

可以采用不同的方法



这是一种方法,我使用DevExpress gridcontrol及其在wpf中..



 BOCLASS class1 =(BOCLASS) (grdName.View.FocusedRow); 





如果你想要正确的结果那么..发布你的代码..


  int  selectedRow = gvTasks.CurrentRowIndex; 
int outletID =( Int32 )gvTasks [selectedRow, 1 ];
string outletDescription =( String )gvTasks [selectedRow, 0 ];


Hi,


I new to Windows Mobile app development. I'm currently developing an app for windows mobile 6.5

I want to store values of the selected row in the datagrid in variables.

Can anyone please help with that.

解决方案

different methods can be adopted

Here is one method, where i am using DevExpress gridcontrol and its in wpf..

BOCLASS class1= (BOCLASS)(grdName.View.FocusedRow);



if you want correct result then.. post your code..


int selectedRow = gvTasks.CurrentRowIndex;
int outletID = (Int32)gvTasks[selectedRow, 1];
string outletDescription = (String)gvTasks[selectedRow, 0];


这篇关于将所选行值分配给变量。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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