Alignment problem in the datagrid

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
 
C

Carl Prothman [MVP]

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
 
V

Vannela

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



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top