AD
Administrator
Syncfusion Team
August 27, 2004 06:08 PM UTC
I think you will have to come up with a valid vale to initialize the cell with. If you cannot get an inital value some other way, worse case would be to get it directly from the slave list, maybe taking the first value in the list. Here is a snippet that will do it in the KB sample.
//this.gridDataBoundGrid1[cc.RowIndex, SlaveColumn].Text = "";
DataView dv = new DataView(slaveComboTable);
dv.RowFilter = string.Format("[masterId] = ''{0}''", this.gridDataBoundGrid1[cc.RowIndex, MasterColumn].Text);
this.gridDataBoundGrid1[cc.RowIndex, SlaveColumn].Text = dv[0]["id"].ToString();