I have a dropdownlist editor as a column. I have loaded it with the values "", "s", "m"
I have an object that has an "s" stored in it...when I initialize the editor I would like to load the initial value that the object has in it....but I can't get it to work. The value of the cell is always null even after I set it.
Thoughts?
I have an object that has an "s" stored in it...when I initialize the editor I would like to load the initial value that the object has in it....but I can't get it to work. The value of the cell is always null even after I set it.
Thoughts?
private void rgcSoil_CellEditorInitialized(object sender, GridViewCellEventArgs e) { if (e.Column.Name != "colSorM") return; RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor; if (editor != null) { var ee = (RadDropDownListEditorElement)((RadDropDownListEditor)this.rgcSoil.ActiveEditor).EditorElement; ee.BeginEdit(); ee.DataSource = new String[] {"", "S", "M" }; SoilType st = (SoilType)e.Row.Tag; ee.Value = st.StandardOrModified; ee.EndEdit(); } }