I have a grid with a GridDropDownColumn. How can I get access to the contents of the dropdown when inserting/updating ?
Ive found an example for textbox but cant find anything for DropDown. Heres the code im using
How do I get the value in the drop down ?
Ive found an example for textbox but cant find anything for DropDown. Heres the code im using
protected void RadGridSecondaryCategories_InsertCommand(object source, GridCommandEventArgs e) |
{ |
//Get the GridEditFormInsertItem of the RadGrid |
//GridEditFormInsertItem insertedItem = (GridEditFormInsertItem)e.Item; |
Telerik.Web.UI.GridDataInsertItem insertedItem = (Telerik.Web.UI.GridDataInsertItem)e.Item; |
string EmployeeID = (insertedItem["EmployeeID"].Controls[0] as TextBox).Text; |
string LastName = (insertedItem["LastName"].Controls[0] as TextBox).Text; // need this to be a GriDDropDown not a textbox |