There is a dropdownlist being populated in the OnItemDataBound event.
protected void RadGrid1_OnItemDataBound(object source, GridItemEventArgs e) { if (e.Item is GridEditableItem && e.Item.IsInEditMode) { GridEditableItem gEditableItem = (GridEditableItem)e.Item; //hit the framework and get a datatable DropDownList ddlEffectiveDate = (DropDownList)gEditableItem["efct_period_date"].FindControl("DdlEffectiveDate"); ddlEffectiveDate.DataSource = dt; dlEffectiveDate.DataTextField = "start_date"; ddlEffectiveDate.DataValueField = "period_id"; ddlEffectiveDate.DataBind(); ddlEffectiveDate.Items.Remove(ddlEffectiveDate.Items[0]); That last line removes the firstitem of the datatable that I've bound the dropdown list to- but the value from the column itself somehow ends up appended into the dropdown list. I'd like to know what event that happens in.
I want to remove the column value from the dropdownlist Edit Item. How do I do that?