Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 6-Aug-13 20:27pm
v2
Comments
What have you tried and where is the problem exactly?

different methods can be adopted

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

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


if you want correct result then.. post your code..
 
Share this answer
 
C#
int selectedRow = gvTasks.CurrentRowIndex;
int outletID = (Int32)gvTasks[selectedRow, 1];
string outletDescription = (String)gvTasks[selectedRow, 0];
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900