Hi,
I am using RadGrid, and in CommandItemTemplate i have one asp DropDownList control. but int the SelectedIndexChanged(object sender, EventArgs e) event i am not able to find the that DropDown control. the code is as follows
<CommandItemTemplate>
the code behind is as follows
ResultStatus_DropDownList_SelectedIndexChanged(object sender, EventArgs e)
So please help
Regards,
Sagar
I am using RadGrid, and in CommandItemTemplate i have one asp DropDownList control. but int the SelectedIndexChanged(object sender, EventArgs e) event i am not able to find the that DropDown control. the code is as follows
<CommandItemTemplate>
<asp:Label ID="Label1" runat="server" Text="Show Results for Status"></asp:Label>
<asp:DropDownList ID="ResultStatus_DropDownList" runat="server" OnSelectedIndexChanged="ResultStatus_DropDownList_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
</CommandItemTemplate>
the code behind is as follows ResultStatus_DropDownList_SelectedIndexChanged(object sender, EventArgs e)
{
// I tried with GridCommandItem
GridCommandItem CommandItem = (GridCommandItem)e.GetType();
DropDownList ResultStatus_DropDownList = (DropDownList)CommandItem.FindControl("ResultStatus_DropDownList");
// But not able to find the ResultStatus_DropDownList control.
}
So please help Regards,
Sagar