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

  • Home
  • SEARCH
  • 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 5990709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:16:58+00:00 2026-05-22T23:16:58+00:00

I have a gridview that is databound to a XmlDataSource. I also want to

  • 0

I have a gridview that is databound to a XmlDataSource. I also want to add a <columns> section with a buttonfield at the end of the gridview. When I add a columns section it prepends it (before xml columns). How could I order

<asp:XmlDataSource ID="xmlDataSource1" runat="server" 
    datafile="some.xml" TransformFile="some.xslt" />
<asp:GridView ID="linksGrid" runat="server" 
  DataSourceID="xmlDataSource1" 
  CssClass="adminGrid" 
  AllowPaging="True" 
  AlternatingRowStyle-BackColor="WhiteSmoke">
    <Columns>
        <asp:ButtonField runat="server" ButtonType="Button" Text="details" />
    </Columns>
</asp:GridView>

this produces a table like this:
enter image description here

I want the order to be reversed: Title, Url, Button column

bones question, how could I space the columns so the modify button has no weight (fits to column) and the remaining cells to get even space?

  • 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-05-22T23:16:59+00:00Added an answer on May 22, 2026 at 11:16 pm

    The code below will surely help you.

    <asp:GridView ID="MyGridView" runat="server" ShowFooter="True">
            <Columns>
                <asp:TemplateField > 
                    <FooterTemplate >
                        <asp:Button ID="MyButton" runat="server" Text="Click Me"/>
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>    
        </asp:GridView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a gridview which is databound, I want to dynamically add a row
I have a gridview that is only shown in a modal popup. right before
I have a GridView that I need to dynamically add TemplateField elements to. My
I have a GridView that has 3 columns: FirstName, LastName and a TemplateField FullName
I have a gridview that contains user info and one of the columns is
I have a gridview that uses autogenerated columns, because the user can select the
i have a gridview witch contain 4 databound columns and 2 templated column. in
I have a gridview that I want to read, delete, edit and update, I
I have a GridView which is databound, on button_click I want to read the
I have a gridview that has databound items. it is bound to a SQLDATASOURCE.

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.