Alignment problem in the datagrid

  • Thread starter Thread starter Vannela
  • Start date Start date
V

Vannela

I want the textboxes to be aligned vertically in the
header template of the datagrid ? how is it possible
Please give me some code snippets.

Thank you
 
Vannela said:
I want the textboxes to be aligned vertically in the
header template of the datagrid ? how is it possible
Please give me some code snippets.

Why are you putting textboxes in the header Template?

You can always use a HTML Table to position the textboxes
<HeaderTemplate>
<table border="0" cellpadding="0" cellpadding="0">
<tr>
<td>
<asp:TextBox id="TextBox1" runat="server" />
</td>
</tr>
<tr>
<td>
<asp:TextBox id="Textbox2" runat="server" />
</td>
</tr>
</table>
</HeaderTemplate>

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com
 
Thank you

Thanks you
-----Original Message-----


Why are you putting textboxes in the header Template?

You can always use a HTML Table to position the textboxes
<HeaderTemplate>
<table border="0" cellpadding="0" cellpadding="0">
<tr>
<td>
<asp:TextBox id="TextBox1" runat="server" />
</td>
</tr>
<tr>
<td>
<asp:TextBox id="Textbox2" runat="server" />
</td>
</tr>
</table>
</HeaderTemplate>

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP
http://www.able-consulting.com



.
 
Back
Top