471,084 Members | 974 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

Resize table column

Hi,

How can I make it resizable?

For example:

<pre>

<!-- datagrid Header -->
<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader">
<td style="WIDTH: 253px" width="248">
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
<!-- End of datagrid Header -->
</pre>

Here I would like to make the both columns resizable... How can I do this?

Thanks,

Yama

Nov 18 '05 #1
2 3423
Yama,

Resizable to what? If to the size of the browser window, add a table width
attribute that's relative (say "90%"), and make the first td width relative
too ("40%")

<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader" width="90%">
<td width="40%">
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
If you want the table to resize to the contents, then remove all "width"
attributes...

<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader">
<td>
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
Dan.

"Yama" <yk*****@stbernard.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

How can I make it resizable?

For example:

<pre>

<!-- datagrid Header -->
<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader">
<td style="WIDTH: 253px" width="248">
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
<!-- End of datagrid Header -->
</pre>

Here I would like to make the both columns resizable... How can I do this?

Thanks,

Yama

Nov 18 '05 #2
Thank you or the reply.

No no you got it wrong. I want the column to be dynamically resizable. I
found a solution.
http://www.deadbeef.com/dhtml/split.htm
Yama

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Yama,

Resizable to what? If to the size of the browser window, add a table width
attribute that's relative (say "90%"), and make the first td width
relative too ("40%")

<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader" width="90%">
<td width="40%">
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
If you want the table to resize to the contents, then remove all "width"
attributes...

<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader">
<td>
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
Dan.

"Yama" <yk*****@stbernard.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

How can I make it resizable?

For example:

<pre>

<!-- datagrid Header -->
<table class="TableHeader" id="tblHeader" border="1" runat="server">
<tr class="TableRowHeader">
<td style="WIDTH: 253px" width="248">
<asp:label id="lblNameHeader" runat="server">Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescriptionHeader"
runat="server">Description</asp:label>
</td>
</tr>
</table>
<!-- End of datagrid Header -->
</pre>

Here I would like to make the both columns resizable... How can I do
this?

Thanks,

Yama


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Martin Lucas-Smith | last post: by
1 post views Thread by chelleybabyger | last post: by
1 post views Thread by SAN CAZIANO | last post: by
5 posts views Thread by John Sidney-Woollett | last post: by
4 posts views Thread by Scot L. Harris | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.