473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 3526
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Martin Lucas-Smith | last post by:
Can anyone point me to a regular expression in PHP which could be used to check that a proposed (My)SQL database/table/column name is valid, i.e. shouldn't result in an SQL error when created? ...
1
by: chelleybabyger | last post by:
Using the below method, <% remaining_stock = cint(product_stock) - cint(chQuantity) %> <% sqlString = "UPDATE Products SET " &_ "product_stock='" & remaining_stock & "'," &_ "WHERE...
1
by: SAN CAZIANO | last post by:
how can i resize the column of a table and add both the scrollbar to it ?
5
by: John Sidney-Woollett | last post by:
Is it possible to alter a table to resize a varchar column? The PG docs indicate lots of uses for "alter table T alter column C..." but not one that allows the changing of the type (or same type,...
4
by: Scot L. Harris | last post by:
Currently using Postgresql 7.2.4-5.80 with php 4.2.2.-8.0.8 on a redhat 8.0 system. I am writing some php scripts where I want to generate a list of the column names in a particular table that...
23
by: srinivd1 | last post by:
I have a problem kaking the columns of a table resizeable by the user on the browser.can some1 help me out with this. Is it a property in the css that i need to add? regards and thanks in advance
1
by: amitsaxena1981 | last post by:
hi, I m using asp.net 2.0 with vb.net , create the grid user control so I have to Resize the column of data grid at runtime by user please help me its urgent... suggest me the code and any...
0
by: ashinamdev | last post by:
Hi I have a probelm I am using the datagrid control in my asp.net web page. I want to resize the datagrid column at runtime. User can be able to resize the column width according to his...
8
by: mguy27 | last post by:
We have about 2 dozen security officers who patrol about 120 buildings. They find defective or unlocked doors and write a "Trouble Report" on the door. This card gets turned in, where I have designed...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.