Possible to move [Edit] button on the RIGHT of a GridView row? (ASP.NET VS2008 C#)

Shaitan00

Junior Contributor
Joined
Aug 11, 2003
Messages
358
Location
Hell
I have an .aspx webpage that contains a GridView (gvInfo), the GridView itself is edit'able (as shown below) by enabling "AutoGenerateEditButton=true", this allows for me to display the EDIT button on the left side of the GridView so that users can select it and then edit the contents of the row.

But, by default the EDIT button is located on the LEFT of the rows, and with the design of my website it looks very odd, I would much prefer - if it is possible - to display the EDIT button on the RIGHT side of the rows - does anyone have a clue if this is possible and if so how it could be accomplished?

Code:
<asp:GridView ID="gvInfo" runat="server" Height="99px" CellSpacing="5" AutoGenerateColumns="False" CellPadding="2"
                AllowPaging="False"
                AutoGenerateEditButton="true" OnRowEditing="gvRegularDosage_RowEditing"
                OnRowCancelingEdit="gvRegularDosage_RowCancelingEdit" OnRowUpdating="gvRegularDosage_RowUpdating"
                EmptyDataText="No records found" >
                <Columns>
                      ...
                      ...
                </Columns>
            </asp:GridView>

Any help would be greatly appreciated.
Thanks,
 
Back
Top