Tuesday, February 9, 2010

Fetch value from a particular cell of Datagrid in .net compcat farmework in developing Window Mobile Application

Step 1 : Made an object of datagridcell.
DataGridCell currentcell;
Step 2 : Take a string to store the data which is in the cell you want to select.
String currentcelldata;
Step 3 : Assign the data of datagrid current cel too the string.
currentcell = dataGrid1.CurrentCell; // Determing the currentcell of
datagid.
currentcelldata = (String)dataGrid1[currentcell.RowNumber, currentcell.ColumnNumber];
// Assigning data .Now the adat of currentcell is in currentcelldata.

No comments:

Post a Comment