Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9084391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:59:14+00:00 2026-06-16T20:59:14+00:00

I have asp grid view and i created 4 columns(Id,Name,quantity,price) and a footer. i

  • 0

I have asp grid view and i created 4 columns(Id,Name,quantity,price) and a footer. i have bounded all the 4 columns from the database. in the footer template, i added a dropdown list item.
every thing is working fine but, the problem is in the footer templalte dropdownlist is added after all the 4 columns but i want to add the dropdown footer to the 2nd column(Name).

Please apologise for my english n Help me

I used the following code:

<asp:GridView ID="gv_page2" runat="server" AutoGenerateColumns="False" 
            BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
            CellPadding="3" ForeColor="Black" GridLines="Vertical" ShowFooter="True"> 
          <AlternatingRowStyle BackColor="#CCCCCC" />
          <FooterStyle BackColor="Black" />
          <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
          <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
          <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
          <SortedAscendingCellStyle BackColor="#F1F1F1" />
          <SortedAscendingHeaderStyle BackColor="#808080" />
          <SortedDescendingCellStyle BackColor="#CAC9C9" />
          <SortedDescendingHeaderStyle BackColor="#383838" />
          <Columns>
          <asp:BoundField  DataField="PRO_ID" HeaderText="PRO_ID" />
          <asp:BoundField DataField="NAME" HeaderText="NAME" ItemStyle-Width="100px"/>
          <asp:TemplateField HeaderText="Quantity">
          <ItemTemplate> <asp:TextBox runat="server" Width="100px"></asp:TextBox></ItemTemplate>
          </asp:TemplateField>
          <asp:BoundField HeaderText="PRICE" ItemStyle-Width="80px"/>
          <asp:BoundField  HeaderText="TOTAL_PRICE"/>
          <asp:TemplateField>
          <FooterTempenter code herelate >
          <asp:DropDownList  ID="ftrDDL" runat="server" DataTextField="PRO_ID" AppendDataBoundItems="true" DataSourceID="" Width="130px" EnableViewState="true" >
          <asp:ListItem Text="SELECT ONE" Value=""></asp:ListItem>
          </asp:DropDownList>
          </FooterTemplate>
          </asp:TemplateField>
          </Columns>

    </asp:GridView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:59:15+00:00Added an answer on June 16, 2026 at 8:59 pm

    you need to modify the template of second column

     <asp:TemplateField HeaderText="Name">
                <ItemTemplate>
                    <asp:Label ID="lblName" Text='<%#     Databinder.Eval(Container.DataItem,"Name") %>'
                        runat="server" Width="100px"></asp:Label></ItemTemplate>
                    <FooterTemplate>
                    <asp:DropDownList ID="ftrDDL" runat="server" DataTextField="PRO_ID" AppendDataBoundItems="true"
                        DataSourceID="" Width="130px" EnableViewState="true">
                        <asp:ListItem Text="SELECT ONE" Value=""></asp:ListItem>
                </FooterTemplate>
            </asp:TemplateField>
    

    I have not tested the code but this should work .Let me know if it did not work

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Grid View which works, the data bound columns extract the proper
I have a Gridview <asp:GridView ID=GridView1 runat=server Width=400px AutoGenerateColumns=false OnSelectedIndexChanged=GridView1_SelectedIndexChanged1> <Columns> <asp:TemplateField> <ItemTemplate> <asp:CheckBox
I have a traditional ASP.NET GridView. Inside of it I have a Template Field
I've created a new ASP.NET website. I've generated an Entity Data Model from my
I have a GridView which retrieves data from a database. Users have roles, some
I Have a set of choices(options) coming from Database(around 36 records) which I have
I have the the GridView's column looking like that: <Columns> <asp:TemplateField HeaderText=Opcje> <ItemTemplate> <asp:LinkButton
I have a GridView with a ButtonField of type link <asp:ButtonField ButtonType=Link CommandName=more HeaderText=Name
I have a asp:GridView and in there i have two columns , in one
Suppose I have following table in my database: Tbl_Persons: Id Country Name 1 Australia

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.