Wednesday, March 28, 2012

tables ;-(

Hello,
I am trying to stop some behavior going on with a table. I have been
using Visual Studio C# 2005.
Basically, the table has certain column widths to start out with. When
data is added to it (and the size of the column is too small), the data
(in this case text) in the column wraps ;-/
How can I keep the data from wrapping? What would be nice is if no
wrapping to place at all and to just be able to adjust the size of
columns manually. You know - where you place the cursor on the boundary
of the column, the cursor changes and then you can lengthen or shorten
the width of the column in order to see more (or less) data.
So, in a nutshell, I would like for the column widths (as well as the
table length and width) to remain the same size as did from the start.
Adjustment of column widths would take place only when using the mouse
;-)
How can I do this?
TIAIm guessing here, but if you think about what the system would need to do in
order to assess the column width Its unlikely that it is going to do it for
you.
In order to assess the column with of any column, one would have to loop
through each cell and get the context, font and size and then measure this
graphically; For each iteration, one would need to adjust the column width
for each lager than previous cell until the end were reached.
If there is no automatic way of doing this then you would have to do this
manually with code.
Other comments ?
Mr N.
"milkyway" <d0mufasa@.hotmail.com> wrote in message
news:1127803098.346775.281760@.z14g2000cwz.googlegroups.com...
> Hello,
> I am trying to stop some behavior going on with a table. I have been
> using Visual Studio C# 2005.
> Basically, the table has certain column widths to start out with. When
> data is added to it (and the size of the column is too small), the data
> (in this case text) in the column wraps ;-/
> How can I keep the data from wrapping? What would be nice is if no
> wrapping to place at all and to just be able to adjust the size of
> columns manually. You know - where you place the cursor on the boundary
> of the column, the cursor changes and then you can lengthen or shorten
> the width of the column in order to see more (or less) data.
> So, in a nutshell, I would like for the column widths (as well as the
> table length and width) to remain the same size as did from the start.
> Adjustment of column widths would take place only when using the mouse
> ;-)
> How can I do this?
> TIA
>
Try style rule table-layout:fixed;
Eliyahu
"milkyway" <d0mufasa@.hotmail.com> wrote in message
news:1127803098.346775.281760@.z14g2000cwz.googlegroups.com...
> Hello,
> I am trying to stop some behavior going on with a table. I have been
> using Visual Studio C# 2005.
> Basically, the table has certain column widths to start out with. When
> data is added to it (and the size of the column is too small), the data
> (in this case text) in the column wraps ;-/
> How can I keep the data from wrapping? What would be nice is if no
> wrapping to place at all and to just be able to adjust the size of
> columns manually. You know - where you place the cursor on the boundary
> of the column, the cursor changes and then you can lengthen or shorten
> the width of the column in order to see more (or less) data.
> So, in a nutshell, I would like for the column widths (as well as the
> table length and width) to remain the same size as did from the start.
> Adjustment of column widths would take place only when using the mouse
> ;-)
> How can I do this?
> TIA
>
milkyway wrote:
> Hello,
> I am trying to stop some behavior going on with a table. I have been
> using Visual Studio C# 2005.
> Basically, the table has certain column widths to start out with. When
> data is added to it (and the size of the column is too small), the
> data (in this case text) in the column wraps ;-/
> How can I keep the data from wrapping? What would be nice is if no
> wrapping to place at all and to just be able to adjust the size of
> columns manually. You know - where you place the cursor on the
> boundary of the column, the cursor changes and then you can lengthen
> or shorten the width of the column in order to see more (or less)
> data.
> So, in a nutshell, I would like for the column widths (as well as the
> table length and width) to remain the same size as did from the start.
> Adjustment of column widths would take place only when using the mouse
> ;-)
> How can I do this?
> TIA
Watch out for a too-exact layout, one that is "perfect" on your development
machine.
A user might use a different browser, have different installed fonts or uses
by default a font with a different size -> gone is your careful layout!
Hans Kesting
set absolute width and overflow style for each td's content, so it can honor
the width. you would need to write client code to resize the table column
widths (adjust the content widths).
<table border=1>
<tr>
<td nowrap><div style="width:40;overflow:hidden">this fits</div></td>
<td nowrap><div style="width:40;overflow:hidden">this xxxxxxxxxxxxxxxxx
doesn't fit</div></td>
</tr>
</table>
-- bruce (sqlwork.com)
"milkyway" <d0mufasa@.hotmail.com> wrote in message
news:1127803098.346775.281760@.z14g2000cwz.googlegroups.com...
> Hello,
> I am trying to stop some behavior going on with a table. I have been
> using Visual Studio C# 2005.
> Basically, the table has certain column widths to start out with. When
> data is added to it (and the size of the column is too small), the data
> (in this case text) in the column wraps ;-/
> How can I keep the data from wrapping? What would be nice is if no
> wrapping to place at all and to just be able to adjust the size of
> columns manually. You know - where you place the cursor on the boundary
> of the column, the cursor changes and then you can lengthen or shorten
> the width of the column in order to see more (or less) data.
> So, in a nutshell, I would like for the column widths (as well as the
> table length and width) to remain the same size as did from the start.
> Adjustment of column widths would take place only when using the mouse
> ;-)
> How can I do this?
> TIA
>
Thanks to all for the responses ;-)
Bruce Barker wrote:
> set absolute width and overflow style for each td's content, so it can hon
or
> the width. you would need to write client code to resize the table column
> widths (adjust the content widths).
>
How would one approach the writing of clinet code to support the
widths? Is there any sample code available?
> "milkyway" <d0mufasa@.hotmail.com> wrote in message
> news:1127803098.346775.281760@.z14g2000cwz.googlegroups.com...
You could easily ammend this code to suit your table control.
http://www.trainingon.net/Articles/TIP0005.htm
HTH
"milkyway" <d0mufasa@.hotmail.com> wrote in message
news:1127968780.006696.275920@.g43g2000cwa.googlegroups.com...
> Thanks to all for the responses ;-)
> Bruce Barker wrote:
> How would one approach the writing of clinet code to support the
> widths? Is there any sample code available?
>
>
Thanks again - will try it out
Thanks again - will try it out
Put <nobr>text here</nobr> around your text.
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Mr Newbie" <here@.now.com> wrote in message
news:e1qRrI0wFHA.664@.tk2msftngp13.phx.gbl...
> Im guessing here, but if you think about what the system would need to do
> in order to assess the column width Its unlikely that it is going to do it
> for you.
> In order to assess the column with of any column, one would have to loop
> through each cell and get the context, font and size and then measure this
> graphically; For each iteration, one would need to adjust the column width
> for each lager than previous cell until the end were reached.
> If there is no automatic way of doing this then you would have to do this
> manually with code.
> Other comments ?
> Mr N.
>
> "milkyway" <d0mufasa@.hotmail.com> wrote in message
> news:1127803098.346775.281760@.z14g2000cwz.googlegroups.com...
>

0 comments:

Post a Comment