GridView reorder Columns

Discussion in 'ASP .Net' started by Guest, Aug 7, 2006.

  1. Guest

    Guest Guest

    Hi guys,

    here's the problem:
    I have a skin defined for my grid, where i define a template column for
    deleting and selecting e.g.:
    <asp:TemplateField>
    <ItemTemplate>
    <asp:ImageButton AlternateText="Delete" ImageUrl="images/delete.png"
    ID="_imgButtonDelete" runat="server" CommandName="Delete"
    OnClientClick="return confirm('Are you sure you want to delete
    this record?');" />
    </ItemTemplate>
    </asp:TemplateField>
    <asp:TemplateField>
    <ItemTemplate>
    <asp:ImageButton AlternateText="Select" ImageUrl="images/find.png"
    ID="_imgButtonSelect" runat="server" CommandName="Select" />
    </ItemTemplate>
    </asp:TemplateField>

    the problem is: if you define such columns in a skin file, that will make
    these columns to always appear at the left side. I would like to have these
    columns at the end. Whta is the best approach to achieve this?
     
    Guest, Aug 7, 2006
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.