Posted on: 4/6/2014 5:43:55 AM | Views : 585

Hi , i have an GridView that use a datasource to retrieve data from the "Orders" table and i also use TemplteField to update the database.
This is my code:
<asp:GridView runat="server" AutoGenerateColumns="False" DataSourceID="OrderDataSource" CssClass="DataTables"> <Columns> <asp:CommandField ShowEditButton="true" /> <asp:BoundField DataField="oID" HeaderText="oId" SortExpression="oId" ReadOnly="true"/> <asp:BoundField DataField="DateOpened" HeaderText="DateOpened" SortExpression="DateOpened" ReadOnly="true"/> <asp:BoundField DataField="rName" HeaderText="rName" SortExpression="rName" ReadOnly="true"/> <asp:BoundField DataField="DateOfA ...

Go to the complete details ...