rsankhwaya 0 Newbie Poster

hi i m using a grid view as below but my problem is that when i add more then 40 rows it slow down the speed of typing in textbox of this gridview.

plz help me

<asp:Panel ID="Panel1" runat="server" Style="overflow: auto"  Width="100%"
                                            GroupingText="Item Detail">
                                           
                                            <asp:Panel ID="pnlproperty" runat="server" Style="overflow: auto;" BorderWidth = "0" Height="280px" Width="840px"
                                                >
                                                <asp:UpdatePanel ID="upProperty" runat="server">
                                                    <ContentTemplate>
                                                        <asp:GridView ID="gvitem" runat="server" AutoGenerateColumns="false" 
                                                            OnRowDataBound="gvitem_RowDataBound" GridLines="Vertical" >
                                                            <RowStyle Wrap="False" />
                                                            <Columns>
                                                                <asp:TemplateField>
                                                                    <HeaderTemplate>
                                                                        <asp:CheckBox ID="cb1" runat="server" TabIndex="-1" />
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox ID="cb1" runat="server" TabIndex="-1" />
                                                                        <asp:HiddenField runat="server" ID="lb_chk" Value='<%#Eval("_Chk")%>' />
                                                                    </ItemTemplate>
                                                                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="SNo">
                                                                    <ItemTemplate>
                                                                        <%#((GridViewRow)Container).RowIndex+1 %>
                                                                    </ItemTemplate>
                                                                     <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Category">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="tbcategory" runat="server" MaxLength="50" Text='<%# Eval("_Category")%>'
                                                                            Width="125px" BorderStyle="None" BackColor="Transparent"></asp:TextBox>
                                                                        <asp:HiddenField runat="server" ID="lb_category" Value='<%#Eval("_CatId")%>' />
                                                                        <asp:HiddenField runat="server" ID="lb_rowenable" Value='<%#Eval("_RowEnable")%>' />
                                                                        
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Material">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="tbmaterial" runat="server" MaxLength="50" Text='<%# Eval("_MatDesc")%>'
                                                                            Width="125px" BorderStyle="None" BackColor="Transparent"></asp:TextBox>
                                                                        <asp:HiddenField runat="server" ID="lb_material" Value='<%#Eval("_MatId")%>' />
                                                                        <asp:HiddenField runat="server" ID="lb_MatCatId" Value='<%#Eval("_CatId_M")%>' />
                                                                        <asp:HiddenField runat="server" ID="lbnoofdes" Value='<%#Eval("_NoDesc")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="From Store">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="tbfromstore" runat="server" MaxLength="50" Text='<%# Eval("_FrDeptDesc")%>'
                                                                            Width="125px" BorderStyle="None" BackColor="Transparent"></asp:TextBox>
                                                                        <asp:HiddenField runat="server" ID="lb_fromstore" Value='<%#Eval("_FrDept")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="From Status">
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="ddlfromstatus" runat="server" BackColor="Transparent" style="border:none">
                                                                        </asp:DropDownList>
                                                                        <asp:HiddenField runat="server" ID="lb_fromStatus" Value='<%#Eval("_FrStatusIndex")%>' />
                                                                        <asp:HiddenField runat="server" ID="FrStatusDesc" Value='<%#Eval("_FrStatusDesc")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="To Status"  >
                                                                    <ItemTemplate>
                                                                        <asp:DropDownList ID="ddltostatus" runat="server" BackColor="Transparent" style="border:none" >
                                                                        </asp:DropDownList>
                                                                        <asp:HiddenField runat="server" ID="lb_toStatus" Value='<%#Eval("_ToStatusIndex")%>' />
                                                                        <asp:HiddenField runat="server" ID="toStatusDesc" Value='<%#Eval("_ToStatusDesc")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Qty" >
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="tbqty" runat="server" MaxLength="50" Text='<%# Eval("_Qty")%>' Width="40px" BorderStyle="None" BackColor="Transparent"></asp:TextBox>
                                                                        <asp:HiddenField runat="server" ID="Stock" Value='<%#Eval("_Stock")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Serial No." >
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="tbserialno" runat="server" MaxLength="50" Text='<%# Eval("_SerialNo")%>'
                                                                            Width="165px" BorderStyle="None" BackColor="Transparent"></asp:TextBox>
                                                                        <asp:HiddenField runat="server" ID="AccID" Value='<%#Eval("_AccID")%>' />
                                                                        <asp:HiddenField runat="server" ID="CustID" Value='<%#Eval("_CustID")%>' />
                                                                        <asp:HiddenField runat="server" ID="DeActivate" Value='<%#Eval("_ReasonID")%>' />
                                                                        <asp:HiddenField runat="server" ID="InOut" Value='<%#Eval("_InOut")%>' />
                                                                        <asp:HiddenField runat="server" ID="JobNo" Value='<%#Eval("_JobNo")%>' />
                                                                        <asp:HiddenField runat="server" ID="Reason" Value='<%#Eval("_DeActivate")%>' />
                                                                        <asp:HiddenField runat="server" ID="StockEffected" Value='<%#Eval("_StockEffected")%>' />
                                                                        <asp:HiddenField runat="server" ID="ONo" Value='<%#Eval("_ONo")%>' />
                                                                        <asp:HiddenField runat="server" ID="OMatId" Value='<%#Eval("_OMatID")%>' />
                                                                        <asp:HiddenField runat="server" ID="TransNo" Value='<%#Eval("_TransNo")%>' />
                                                                        <asp:HiddenField runat="server" ID="OTransNo" Value='<%#Eval("_OTransNo")%>' />
                                                                        <asp:HiddenField runat="server" ID="SWSerial" Value='<%#Eval("_SWserial")%>' />
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Remarks">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="tbremarks" runat="server" MaxLength="250" Text='<%# Eval("_Remarks")%>'
                                                                            Width="110px"  BorderStyle="None" BackColor="Transparent"></asp:TextBox>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" HorizontalAlign="Left"
                                                                VerticalAlign="Middle" />
                                                        </asp:GridView>
                                                    </ContentTemplate>
                                                </asp:UpdatePanel>
                                            </asp:Panel>
                                            
                                        </asp:Panel>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.