MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Table Scrolling Problem

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet
Author Message
A Question



Joined: 12 Dec 2007
Posts: 1

PostPosted: Fri Dec 14, 2007 8:33 pm    Post subject: Table Scrolling Problem Reply with quote

Hi,

I have a table which I need to display within a div of a fixed width. The
length of the table exceeds the width of the div which is ok as I can make
the div scrollable. The problem that I have is that the cells in the table
must be a fixed with because they need to co-incide with another table which
is going to be in another scrolling div below.

The problem is if I restrict the with of the containing div to something
less than the with of the table. The table then attempts to crunch the
table width to the least width and thus reduces the table cell widths and
ignores the fixes widht size applied tot he style.

How can I get around this.

Archived from group: microsoft>public>dotnet>framework>aspnet
Back to top
View user's profile Send private message
George Ter-Saakov



Joined: 08 Aug 2007
Posts: 10

PostPosted: Fri Dec 14, 2007 4:23 pm    Post subject: Re: Table Scrolling Problem Reply with quote

the simple solution would be to
1. create transparent.gif with size 1x1 pixel
2. To the headers of columns add height=1>

This will keep your columns to be at least 100 pixels.

PS: There might be easier solutions with CSS. Mine is just a suggestion and
will work with any browser.

George.


"A Question" wrote in message @TK2MSFTNGP05.phx.gbl...
> Hi,
>
> I have a table which I need to display within a div of a fixed width. The
> length of the table exceeds the width of the div which is ok as I can
> make the div scrollable. The problem that I have is that the cells in the
> table must be a fixed with because they need to co-incide with another
> table which is going to be in another scrolling div below.
>
> The problem is if I restrict the with of the containing div to something
> less than the with of the table. The table then attempts to crunch the
> table width to the least width and thus reduces the table cell widths and
> ignores the fixes widht size applied tot he style.
>
> How can I get around this.
>
>
Back to top
View user's profile Send private message
Just Me



Joined: 08 Aug 2007
Posts: 7

PostPosted: Sat Dec 15, 2007 11:14 pm    Post subject: Re: Table Scrolling Problem Reply with quote

Hi, yes, its a possibility. I have also found that fixing the width of the
table acheives the same thing. Thanks for your help.


"George Ter-Saakov" wrote in message @TK2MSFTNGP02.phx.gbl...
> the simple solution would be to
> 1. create transparent.gif with size 1x1 pixel
> 2. To the headers of columns add > height=1>
>
> This will keep your columns to be at least 100 pixels.
>
> PS: There might be easier solutions with CSS. Mine is just a suggestion
> and will work with any browser.
>
> George.
>
>
> "A Question" wrote in message
> @TK2MSFTNGP05.phx.gbl...
>> Hi,
>>
>> I have a table which I need to display within a div of a fixed width. The
>> length of the table exceeds the width of the div which is ok as I can
>> make the div scrollable. The problem that I have is that the cells in the
>> table must be a fixed with because they need to co-incide with another
>> table which is going to be in another scrolling div below.
>>
>> The problem is if I restrict the with of the containing div to something
>> less than the with of the table. The table then attempts to crunch the
>> table width to the least width and thus reduces the table cell widths and
>> ignores the fixes widht size applied tot he style.
>>
>> How can I get around this.
>>
>>
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Listview horizontal scrolling problem How do I control the behavior of ListView horizontal scrolling? Right now it appears and doesn't change as I size the window.

GridView - Problem with Table.Rows.Remove( ) Hi, I have a gridview from which i want to remove gridviewrows onfly. I remove the rows as follows: Dim oTable as Table = Table) TableRow)) Above removes required rows from the gridview but

Strange Problem: Removing rows from Table object doesnt upda Hi, I'm removing rows from a gridview using Table.Remove( ). This removes the rows from the gridview. But the problem is although it removes rows from the gridview it doesnt update the to return correct number of rows remains on the gr

PInvoke Scrolling Hey gang, I am working on a gesture recognition library of which will make navigating the WM UI nicer, more "iPhone" like via the touch screen. So I am detecting touch screen gestures however for example if you drag your finger down the screen I want to s

DataGridView DragOver Scrolling I'm trying to figure out how to scroll the screen on a drag/drop DragOver event for a DataGridView. I've got it scrolling down. I need some help in figuring out how to scroll up. private void e) { Rectangle rec
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> ASPNet All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group