Click here to Skip to main content
16,017,373 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
ridoy 5-Oct-13 6:43am    
Well,you want to read data row wise from a datagrid,is it for a Windows Phone project?(what do you mean by smart device project?)
harikrishnanmb 5-Oct-13 6:48am    
windows phone project is also known as smart device project.

1 solution

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.


C#
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.
 
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