Note that there are some explanatory texts on larger screens.

plurals
  1. POChange the order of the commandField in gridview?
    primarykey
    data
    text
    <p>I have a gridview which is totatly bounded by programatically .And i added a command field for selection .But it shows up on the first column .Bu i want to change its order to the last column. I tried to use Displayindex , but that column doesn't involve a headerrow.</p> <p>Here is my gridview looks like</p> <pre><code> UserID UserName UserAddress ------------------------------------------------- Select 1 testname testaddress </code></pre> <p>I just want to pass Select to the last column</p> <pre><code> UserID UserName UserAddress ------------------------------------------------- 1 testname testaddress Select &lt;asp:GridView ID="GridForUnits" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Style="text-align: left" Width="851px" OnRowDataBound="GridForUnits_RowDataBound" OnSelectedIndexChanged="GridForUnits_SelectedIndexChanged1"&gt; &lt;AlternatingRowStyle BackColor="White" /&gt; &lt;Columns&gt; &lt;asp:CommandField ShowSelectButton="True" /&gt; &lt;/Columns&gt; &lt;EditRowStyle BackColor="#7C6F57" /&gt; &lt;FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /&gt; &lt;HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" /&gt; &lt;PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /&gt; &lt;RowStyle BackColor="#E3EAEB" /&gt; &lt;SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" /&gt; &lt;SortedAscendingCellStyle BackColor="#F8FAFA" /&gt; &lt;SortedAscendingHeaderStyle BackColor="#246B61" /&gt; &lt;SortedDescendingCellStyle BackColor="#D4DFE1" /&gt; &lt;SortedDescendingHeaderStyle BackColor="#15524A" /&gt; &lt;/asp:GridView&gt; </code></pre> <p>Any Help Appreciate.</p> <p>Thanks</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload