sets a new id for a row by its index
//set a new id for the first row mygrid.setRowId(0,"new_row_id");