Hi,
I need to retrive ComboBox id which was in RadGrid EditItemTemplate.
Here is my code:
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridEditFormItem && e.Item.IsInEditMode)
// if EditMode is EditForm or PopUp
{
GridEditFormItem editItem = (GridEditFormItem)e.Item;
RadComboBox ddlCity = editItem.FindControl(
"gvddlPOWCity"
)
as
RadComboBox;
string
city = ddlCity.SelectedValue;
. . . . . . . .
}
}
I am set the property in MasterTable view as below:
<MasterTableView DataKeyNames="POWId" EditMode="EditForms">
Eventhough I am getting e.Item.IsInEditMode is always false.
Is there any more modifications need to perform.Please tell me...
Thanks...