title: Edit button side by side on Gridview asp.net
body: <p>i need to display the Update and cancel button in my gridview in line, not on top of each other</p>
  
  <p>it's like this right now:</p>
  
  <p><img src="https://i.stack.imgur.com/PMyGL.png" alt="http://i.imgur.com/J53fCSi.png"></p>
  
  <p>And I need it to be like this:</p>
  
  <p>GreenButton RedButton</p>
  
  <p>Any ideias?</p>
  
  <p>Here is the asp.net code:</p>
  
  <pre><code>&lt;asp:GridView runat="server" ID="CriteriosGridView" DataSourceID="dsCriterios" DataKeyNames="codigo"
          AutoGenerateColumns="False" CssClass="tabConfigGeral" HorizontalAlign="Center"
          BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
          CellPadding="3" OnDataBound="CriteriosGridView_DataBound"&gt;
          &lt;Columns&gt;
              &lt;asp:BoundField DataField="codigo" HeaderText="Ordem" ItemStyle-HorizontalAlign="Center"
                  InsertVisible="False" ReadOnly="True" SortExpression="codigo"&gt;
                  &lt;ItemStyle HorizontalAlign="Center"&gt;&lt;/ItemStyle&gt;
              &lt;/asp:BoundField&gt;
              &lt;asp:BoundField DataField="filtro" HeaderText="Critério" SortExpression="filtro"
                  ItemStyle-Width="200px"&gt;
                  &lt;ItemStyle Width="200px"&gt;&lt;/ItemStyle&gt;
              &lt;/asp:BoundField&gt;
              &lt;asp:CommandField ShowEditButton="True" HeaderText="Ação" CancelText="" EditText=""
                  UpdateText="" Visible="False" ButtonType="Image" CancelImageUrl="~/Images/Cancel.png"
                  EditImageUrl="~/Images/action.Edit.gif" UpdateImageUrl="~/Images/Logado.png"&gt;
                  &lt;ControlStyle Height="14px" Width="14px" /&gt;
                  &lt;ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Height="22px" Width="22px"
                      CssClass="BotaoGrid"&gt;&lt;/ItemStyle&gt;
              &lt;/asp:CommandField&gt;
          &lt;/Columns&gt;
          &lt;FooterStyle BackColor="White" ForeColor="#000066" /&gt;
          &lt;PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" /&gt;
          &lt;SelectedRowStyle BackColor="#669999" HorizontalAlign="Center" Font-Bold="True" ForeColor="White" /&gt;
          &lt;HeaderStyle BackColor="#318ADE" Font-Bold="True" ForeColor="White" /&gt;
          &lt;RowStyle ForeColor="#000066" BackColor="White" HorizontalAlign="Center" /&gt;
          &lt;AlternatingRowStyle BackColor="#E7F7FF" /&gt;
      &lt;/asp:GridView&gt;
  </code></pre>