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.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment