title: C# Question about Data Grid
body: <p>I have the buttons populated in a DataGrid, now I want them to show on the right of the data not the default position (left). How can I achieve this?</p>
  
  <p>Thank you</p>
  
  <pre><code>&lt;asp:DataGrid runat="server" ID="myDataGrid"
  BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" 
  GridLines="None"&gt;
  &lt;Columns&gt;
     &lt;asp:TemplateColumn&gt;
         &lt;ItemTemplate&gt;
            &lt;asp:Button runat="server" Text="Delete"/&gt;
          &lt;/ItemTemplate&gt;
     &lt;/asp:TemplateColumn&gt;
  &lt;/Columns&gt;
  </code></pre>
  
  <p></p>
  
  <p>PS: I am binding the data to an array</p>
  
  <pre><code>  myDataGrid.DataSource = vals;
    myDataGrid.DataBind();
  </code></pre>