Hello,
I run the following code to put a drop-down list in each cell (it works !)
MySqlDataReader RdrSecteur = Cnx.ExecuteSql("SELECT Sct_Id, Sct_Libelle FROM Secteur ORDER BY Sct_Libelle");
iGDropDownList dplSecteur = new iGDropDownList();
dplSecteur.FillWithData(RdrSecteur, "Sct_Id", "Sct_Libelle");
string Sql = "SELECT Id, Secteur, Service, Traducteur, Middleware FROM v_tbl_Gestionnaire";
DataSet myDataSet = new DataSet();
myDataSet = SelectRows(myDataSet, Sql);
iGridGestionnaire.FillWithData(myDataSet.Tables[0]);
iGridGestionnaire.Cols[1].CellStyle.DropDownControl = dplSecteur;
I take the value --> OK
string text = iGridGestionnaire.Cells[2, "Secteur"].Text.ToString(); --> Sct_Libelle
How can I retrieve the id from my controlbox in a grid cell ?
string value_id = iGridGestionnaire.Cells[2, "Secteur"]... ; --> Sct_Id ?????
Thank you for your help ;-)