editing problem in gridview
-
hiii i m using asp.net and facing problem in edit time,when i click on edit button all field are readonly they are not change in textbox(editable mode). code is <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" DataKeyNames="materialrecipt_no" PageSize="20" Style="position: relative" Width="1064px" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnRowEditing="GridView1_RowEditing" AllowPaging="True"> <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /> <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /> <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /> <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /> <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /> <AlternatingRowStyle BackColor="#F7F7F7" /> <Columns> <asp:CommandField ShowEditButton="True" /> <asp:BoundField DataField="materialrecipt_no" HeaderText="Sr No" InsertVisible="False" ReadOnly="True" SortExpression="materialrecipt_no" /> <asp:BoundField DataField="materialrecipt_date" HeaderText="Entry Date" SortExpression="materialrecipt_date" /> <asp:BoundField DataField="pname" HeaderText="Product Name" SortExpression="pname" /> <asp:BoundField DataField="qty" HeaderText="Quantity" SortExpression="qty" /> <asp:BoundField DataField="enterby" HeaderText="Enter By" SortExpression="enterby" /> <asp:BoundField DataField="sno_to" HeaderText="Sr No(End)" SortExpression="sno_to" /> <asp:BoundField DataField="sno_from" HeaderText="Sr No(Start)" SortExpression="sno_from" /> </Columns> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<
-
hiii i m using asp.net and facing problem in edit time,when i click on edit button all field are readonly they are not change in textbox(editable mode). code is <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" DataKeyNames="materialrecipt_no" PageSize="20" Style="position: relative" Width="1064px" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnRowEditing="GridView1_RowEditing" AllowPaging="True"> <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /> <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /> <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /> <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /> <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /> <AlternatingRowStyle BackColor="#F7F7F7" /> <Columns> <asp:CommandField ShowEditButton="True" /> <asp:BoundField DataField="materialrecipt_no" HeaderText="Sr No" InsertVisible="False" ReadOnly="True" SortExpression="materialrecipt_no" /> <asp:BoundField DataField="materialrecipt_date" HeaderText="Entry Date" SortExpression="materialrecipt_date" /> <asp:BoundField DataField="pname" HeaderText="Product Name" SortExpression="pname" /> <asp:BoundField DataField="qty" HeaderText="Quantity" SortExpression="qty" /> <asp:BoundField DataField="enterby" HeaderText="Enter By" SortExpression="enterby" /> <asp:BoundField DataField="sno_to" HeaderText="Sr No(End)" SortExpression="sno_to" /> <asp:BoundField DataField="sno_from" HeaderText="Sr No(Start)" SortExpression="sno_from" /> </Columns> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<