Dear Sir
Why i am loosing Property class of Datagrid.
After using Update Panel on Page Load working.
After Datagrid Value Change not working.
<div class="box-body pre-scrollable">
<div class="row">
<div class="col-lg-12 with-border table-bordered" >
<asp:UpdatePanel ID="UpdateRate" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:DataGrid ID="gridRate" CssClass="table table-striped table-bordered" runat="server" OnItemDataBound="gridRate_ItemDataBound"
AutoGenerateColumns="false" CellPadding="3" Width="100%" HeaderStyle-BackColor="SlateGray"
HeaderStyle-Font-Size="X-Small" HeaderStyle-Font-Names="Calisto MT" ItemStyle-Font-Size="Small" ItemStyle-Font-Names="Calisto MT"
HeaderStyle-ForeColor="White">
<Columns>
<asp:TemplateColumn HeaderText="From Division">
<ItemTemplate>
<asp:DropDownList ID="ddlFromDivision" runat="server" CssClass="form-control selectpicker"></asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="From Location Type">
<ItemTemplate>
<asp:DropDownList ID="ddlFromLocationType" runat="server"
CssClass="form-control selectpicker"></asp:DropDownList>
<input type="hidden" id="hdnFromLocationType" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "FROM_LOCATION_TYPE") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="From Location">
<ItemTemplate>
<asp:TextBox ID="txtFromBranch" runat="server" CssClass="form-control hidden" Width="50px" Text='<%# DataBinder.Eval(Container.DataItem, "FROM_LOCATION") %>'></asp:TextBox>
<asp:DropDownList ID="ddlFromBranch" runat="server" CssClass="form-control selectpicker" data-dropup-auto="false" data-live-search="true" ></asp:DropDownList>
<input type="hidden" id="hdnFromBranch" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "FROM_LOCATION") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="To Division">
<ItemTemplate>
<asp:DropDownList ID="ddlToDivision" onkeydown="return tab(this);" runat="server" CssClass="form-control selectpicker"></asp:DropDownList>
<input type="hidden" id="hdnToDivision" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TO_DIVISION") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="To Location Type">
<ItemTemplate>
<asp:DropDownList ID="ddlToLocationType" runat="server" CssClass="form-control selectpicker" AutoPostBack="true" OnSelectedIndexChanged="ddlToLocationCat_SelectedIndexChanged"></asp:DropDownList>
<input type="hidden" id="hdnToLocationType" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TO_LOCATION_TYPE") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="To Location">
<ItemTemplate>
<asp:TextBox ID="txtToBranch" runat="server" CssClass="form-control hidden" Text='<%# DataBinder.Eval(Container.DataItem, "TO_LOCATION") %>'></asp:TextBox>
<asp:DropDownList ID="ddlToBranch" runat="server" CssClass="form-control selectpicker" Width="130px" data-dropup-auto="false" data-live-search="true" ></asp:DropDownList>
<input type="hidden" id="hdnToBranch" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TO_LOCATION") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Services">
<ItemTemplate>
<asp:DropDownList ID="ddlServices" onkeydown="return tab(this);" runat="server" CssClass="form-control selectpicker" Width="170px"></asp:DropDownList>
<input type="hidden" id="hdnServices" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "SERVICE") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="UOM">
<ItemTemplate>
<asp:DropDownList ID="ddlUOM" onkeydown="return tab(this);"
runat="server" CssClass="form-control selectpicker"
Width="150px" ></asp:DropDownList>
<input type="hidden" id="hdnUOM" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "UOM") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="UOM 2" >
<ItemTemplate>
<asp:DropDownList ID="ddlUOM2" runat="server" CssClass="form-control selectpicker" data-dropup-auto="false" data-live-search="true" Width="135px"></asp:DropDownList>
<input type="hidden" id="hdnUOM2" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "UOM_2") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="From Weight (Kg)">
<ItemTemplate>
<asp:TextBox ID="txtFromWeight" runat="server" Width="100px" MaxLength="7" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "FROM_WEIGHT") %>'></asp:TextBox>
<input type="hidden" id="hdnFromWeight" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "FROM_WEIGHT") %>' />
<cc1:FilteredTextBoxExtender ID="FilteredtxtFromWeight" runat="server" FilterType="Numbers" TargetControlID="txtFromWeight" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="To Weight (Kg)">
<ItemTemplate>
<asp:TextBox ID="txtToWeight" Width="100px" runat="server" MaxLength="7" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "TO_WEIGHT") %>'></asp:TextBox>
<input type="hidden" id="hdnToWeight" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TO_WEIGHT") %>' />
<cc1:FilteredTextBoxExtender ID="FilteredtxtToWeight" runat="server" FilterType="Numbers" TargetControlID="txtToWeight" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="From KM">
<ItemTemplate>
<asp:TextBox ID="txtFromKM" runat="server" MaxLength="6" Width="65px" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "FROM_KM") %>'></asp:TextBox>
<input type="hidden" id="hdnFromKM" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "FROM_KM") %>' />
<cc1:FilteredTextBoxExtender ID="FilteredtxtFromKM" runat="server" FilterType="Numbers" TargetControlID="txtFromKM" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="To KM">
<ItemTemplate>
<asp:TextBox ID="txtToKM" runat="server" MaxLength="6" Width="65px" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "TO_KM") %>'></asp:TextBox>
<input type="hidden" id="hdnToKM" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TO_KM") %>' />
<cc1:FilteredTextBoxExtender ID="FilteredtxtToKM" runat="server" FilterType="Numbers" TargetControlID="txtToKM" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Currency">
<ItemTemplate>
<asp:DropDownList ID="ddlCurrency" onchange="return GridValidation(this);" runat="server" CssClass="form-control selectpicker" Width="70px"></asp:DropDownList>
<input type="hidden" id="hdnCurrency" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "CURRENCY") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Rate">
<ItemTemplate>
<asp:TextBox ID="txtRate" runat="server" Width="150px" MaxLength="10" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "RATE") %>'></asp:TextBox>
<input type="hidden" id="hdnRate" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "RATE") %>' />
<cc1:FilteredTextBoxExtender ID="FilteredtxtRate" runat="server" FilterType="Custom,Numbers" ValidChars="." TargetControlID="txtRate" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Effective From Date">
<ItemTemplate>
<asp:TextBox ID="txtEffFromDate" runat="server" Width="150px" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "EFFECT_FROM_DATE") %>'></asp:TextBox>
<input type="hidden" id="hdnEffFromDate" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "EFFECT_FROM_DATE") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Effective To Date">
<ItemTemplate>
<asp:TextBox ID="txtEffToDate" runat="server" Width="150px" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "EFFECT_TO_DATE") %>'></asp:TextBox>
<input type="hidden" id="hdnEffToDate" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "EFFECT_TO_DATE") %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Transit Time (Days)">
<ItemTemplate>
<asp:TextBox ID="txtTransitTime" runat="server" Width="50px" MaxLength="2" CssClass="form-control" Text='<%# DataBinder.Eval(Container.DataItem, "TRANSIT_TIME") %>'></asp:TextBox>
<input type="hidden" id="hdnTransitTime" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "TRANSIT_TIME") %>' />
<cc1:FilteredTextBoxExtender ID="FilteredtxtTransitTime" runat="server" FilterType="Numbers" TargetControlID="txtTransitTime" />
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="SR_NO" HeaderText="SrNo" Visible="False"></asp:BoundColumn>
</Columns>
</asp:DataGrid>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>