Code snipshot
ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="false" AllowAutomaticInserts="True"
AllowSorting="true" AllowAutomaticUpdates="True" AllowPaging="false"
AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" ShowStatusBar="true"
Width="950px" OnItemDataBound= "rgQueue2_OnItemDataBound">
<MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataSourceID="ObjectDataSource1"
HorizontalAlign="NotSet" AllowSorting="false" EditMode="InPlace">
<Columns>
<telerik:GridTemplateColumn HeaderText="Source" DataField="SourceName" UniqueName="Source"
HeaderStyle-Width="250px" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:Label ID="lblsource" runat="server"> <%# DataBinder.Eval(Container.DataItem, "SourceName")%> </asp:Label></ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="ddlsource" runat="server">
</asp:DropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
ASPX.CS:
protected void rgQueue2_OnItemDataBound(object sender, GridItemEventArgs e)
{
if ((e.Item is GridEditableItem) && e.Item.IsInEditMode)
{
GridEditableItem item = e.Item as GridEditableItem;
DropDownList list = item.FindControl("ddlsource") as DropDownList;
}
}
Problem is its not entering the if statement even...can anyone suggested me to get through it..!!!
Thanks