How to get selected row in DataGrid in smartphone application?

Azhar picture Azhar · Aug 9, 2010 · Viewed 9.9k times · Source

I am working on a smartphone application, where I have a DataGrid in winform.

I want to get the value of cell of the selected row..

Answer

Azhar picture Azhar · Aug 9, 2010

This will return the value of selected cell of DataGrid in smartphone application

   MessageBox.Show(dgDataGrid[dgDataGrid.CurrentCell.RowNumber,
 dgDataGrid.CurrentCell.ColumnNumber].ToString());

Through this you can get or set the cell value.