473,756 Members | 8,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Resize table column

Hi,

How can I make it resizable?

For example:

<pre>

<!-- datagrid Header -->
<table class="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header">
<td style="WIDTH: 253px" width="248">
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
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 3544
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="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header" width="90%">
<td width="40%">
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
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="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header">
<td>
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
runat="server"> Description</asp:label>
</td>
</tr>
</table>
Dan.

"Yama" <yk*****@stbern ard.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hi,

How can I make it resizable?

For example:

<pre>

<!-- datagrid Header -->
<table class="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header">
<td style="WIDTH: 253px" width="248">
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
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******** ******@TK2MSFTN GP11.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="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header" width="90%">
<td width="40%">
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
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="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header">
<td>
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
runat="server"> Description</asp:label>
</td>
</tr>
</table>
Dan.

"Yama" <yk*****@stbern ard.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
Hi,

How can I make it resizable?

For example:

<pre>

<!-- datagrid Header -->
<table class="TableHea der" id="tblHeader" border="1" runat="server">
<tr class="TableRow Header">
<td style="WIDTH: 253px" width="248">
<asp:label id="lblNameHead er" runat="server"> Template Name</asp:label>
</td>
<td>
<asp:label id="lblDescript ionHeader"
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
17352
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? The user of my (hopefully to be opensourced) program has the ability to create database/table/column names on the fly. I'm aware of obvious characters such as ., , things like >, etc., which won't work, but haven't been able to source a...
1
3251
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 product_id='" &chID& "'"
1
1858
by: SAN CAZIANO | last post by:
how can i resize the column of a table and add both the scrollbar to it ?
5
8813
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, new size). This is possible in Oracle (provided you are increasing the column size). Is there a way to resize the column without having to drop or recreate the table or column? Thanks
4
2983
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 the user selects. I could take the brute force method and hard code the column names but then every time I add a new table or modify an existing one I would have to modify the code. What I want is to have a generic function that given the table...
23
34981
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
1153
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 guidance which is suitable ...... Thanka&Regards Amit
0
1340
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 requirment at run time. Pls solve this problem. Ashish
8
6788
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 an Access Field and Table to enter the information and store it. They then get emailed to their respective supervisors so the problems can be dealt with. As of right now, we have a big list on the wall of the buildings and their supervisors....
0
9456
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10040
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9873
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9713
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7248
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.