Hi.
May be this will help you.
Suppose we have DataGrid grd;
int cur_row = grd.CurrentRowIndex; //getting current selected grid row
if(cur_row == -1)
return; // if there is no selected row just exit of method
object val = grd[grd.CurrentCell]; //getting value of the current cell
|