<asp:GridView ID="grdEkranList" runat="server" AutoGenerateColumns="False"
onrowcancelingedit="grdEkranList_RowCancelingEdit"
onrowediting="grdEkranList_RowEditing"
onrowupdating="grdEkranList_RowUpdating" CellPadding="4" ForeColor="#333333"
GridLines="None" onrowcommand="grdEkranList_RowCommand"
onrowdatabound="grdEkranList_RowDataBound" >
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
<Columns>
<asp:TemplateField HeaderText="Inç">
<ItemTemplate>
<asp:Label ID="lblInc" Text='<%# Eval("INC")%>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="drpEkranInc" runat="server" AppendDataBoundItems="True">
<asp:ListItem Value="0">Seçiniz</asp:ListItem>
<asp:ListItem Value="1">15</asp:ListItem>
<asp:ListItem Value="2">17</asp:ListItem>
<asp:ListItem Value="3">19</asp:ListItem>
<asp:ListItem Value="4">22</asp:ListItem>
<asp:ListItem Value="5">32</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="drpNewEkranInc" runat="server" AppendDataBoundItems="True">
<asp:ListItem Value="0">Seçiniz</asp:ListItem>
<asp:ListItem Value="1">15</asp:ListItem>
<asp:ListItem Value="2">17</asp:ListItem>
<asp:ListItem Value="3">19</asp:ListItem>
<asp:ListItem Value="4">22</asp:ListItem>
<asp:ListItem Value="5">32</asp:ListItem>
</asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Seri No">
<ItemTemplate>
<asp:Label ID="lblEkranSeriNo" Text='<%# Eval("EKRAN_SERI_NO")%>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtEkranSeriNo" runat="server" Text='<%# Eval("EKRAN_SERI_NO")%>' />
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="txtNewEkranSeriNo" runat="server" />
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Marka">
<ItemTemplate>
<asp:Label ID="lblEkranMarka" Text='<%# Eval("MARKA_ADI")%>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="drpEkranMarka" runat="server" DataSourceID="sdsEkranMarka" DataValueField="DONANIM_ID" DataTextField="ACIKLAMA" SelectedValue='<%# Eval("MARKA") %>'></asp:DropDownList>
</EditItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="drpNewEkranMarka" runat="server" ></asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Renk">
<ItemTemplate>
<asp:Label ID="lblEkranRenk" Text='<%# Eval("RENK")%>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="drpEkranRenk" runat="server" DataTextField="RENK" DataValueField="RENK"></asp:DropDownList>
</EditItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="drpNewEkranRenk" runat="server"></asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Adet">
<ItemTemplate>
<asp:Label ID="lblEkranAdet" Text='<%# Eval("ADET")%>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="drpEkranAdet" runat="server">
<asp:ListItem Value="0">Seçiniz</asp:ListItem>
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
</asp:DropDownList>
</EditItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="drpNewEkranAdet" runat="server">
<asp:ListItem Value="0">Seçiniz</asp:ListItem>
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
<asp:ListItem>4</asp:ListItem>
<asp:ListItem>5</asp:ListItem>
</asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Edit" ShowHeader="false">
<ItemTemplate>
<asp:LinkButton ID="btnedit" runat="server" CommandName="Edit" Text="Düzenle" ></asp:LinkButton>
</ItemTemplate>
<EditItemTemplate>
<asp:LinkButton ID="btnupdate" runat="server" CommandName="Update" Text="Güncelle" ></asp:LinkButton>
<asp:LinkButton ID="btncancel" runat="server" CommandName="Cancel" Text="Iptal"></asp:LinkButton>
</EditItemTemplate>
<FooterTemplate>
<asp:Button ID="btnInsert" runat="Server" Text="Ekle" CommandName="Insert" UseSubmitBehavior="False" />
</FooterTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyle BackColor="#999999" />
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<SortedAscendingCellStyle BackColor="#E9E7E2" />
<SortedAscendingHeaderStyle BackColor="#506C8C" />
<SortedDescendingCellStyle BackColor="#FFFDF8" />
<SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
code behind
grdEkranList.ShowFooter = true;