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)
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
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();