Click here to Skip to main content
12,505,341 members (62,509 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET

Here is my Source code for the previous quation,

Please make corrections if there any mistakes in the code.

<asp:GridView ID="GridView1" runat="server"  DataKeyNames="EmpNo"
            AllowPaging="true" AllowSorting="true" PageSize="5"
            onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing"
            onsorting="GridView1_Sorting" EnableModelValidation="true"
            AutoGenerateColumns="false" onrowcommand="GridView1_RowCommand"
            ShowFooter="true" onrowdatabound="GridView1_RowDataBound">
            <RowStyle HorizontalAlign="Center" />
            <AlternatingRowStyle BackColor="White" />
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" ForeColor="White" Font-Bold="True" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
<asp:TemplateField HeaderText="EmpNo" SortExpression="EmpNo" HeaderStyle-HorizontalAlign="Left"><EditItemTemplate>
<asp:TextBox ID="txtEmNo" runat="server" Text='<%#Eval("EmpNo") %>'></asp:TextBox>
<asp:TextBox ID="txtEmpNo" runat="server"/>
<asp:Label ID="lblitemNo" runat="server" Text='<%#Eval("EmpNo") %>'/>
Posted 28-Nov-12 19:33pm
__TR__ 29-Nov-12 1:54am
Don't split your code into 2 questions. Use the "Improve question" widget to update your old question and include this code in the same question. After you have updated the old question please delete this one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 29 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100