Get dataID of gridCellValue directly after inserting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sl1ver
    New Member
    • Mar 2009
    • 196

    Get dataID of gridCellValue directly after inserting

    Hi

    I'm inserting a row into one grid, now i need to post it, then retrieve it so that the id can be used to load corresponding data into a grid below.

    I've tried posting it completely, then calling a function where id get the id from the grid and then doing the necessary posting but it doesn't work

    e.g (im using xtragrid)
    Code:
    DataRow dr = gvRole.GetDataRow(gvRole.FocusedRowHandle);
                    string roleIDs = dr["ROL__ID"].ToString();
    after posting i call the function but there doesn't seem to be any corresponding id yet so i can't perform the action on the second grid
Working...