Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Controls / November 2005

Tip: Looking for answers? Try searching our database.

datagrid pixel height not respected

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TS - 28 Nov 2005 17:01 GMT
I have a datagrid that i have set the height to. Its table that it is
contained in does not have the height set. It seems that no matter what i
put in this property for the datagrid, the height never changes.

thanks
Steven Cheng[MSFT] - 29 Nov 2005 02:33 GMT
Hi TS,

Welcome to ASPNET newsgroup.
As for the DataGrid control's Height setting problem you mentioned, I think
the DataGrid's Height( just the html <table>'s height setting) is
determined by two things:

1. The height value we specified..

2. The data records(Data Items) bound to it at runtime....

So the actual heigh displaying on the browser should be no less than the
value which can display all the data items. In other words, we can specify
a larger value but not a shoter value...

Also, generally, we don't recommend that we manually set the datagrid's
height since it'll automatically increase or decrease according to the
displayed items's count ....

Thanks,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "TS" <manofsteele1@nospam.nospam>
| Subject: datagrid pixel height not respected
[quoted text clipped - 10 lines]
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:31364
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
[quoted text clipped - 3 lines]
|
| thanks
TS - 29 Nov 2005 12:43 GMT
i generally don't ever try to set the height, but in this case the datagrid
is in a frame. The main page requires you to scroll, then inside the frame,
the datagrid again requires a scroll. So in order to see all the data in the
datagrid, you have to use 2 scroll bars. I'm trying to alleviate this issue,
any ideas?

thanks

> Hi TS,
>
[quoted text clipped - 49 lines]
> |
> | thanks
Steven Cheng[MSFT] - 30 Nov 2005 01:43 GMT
Thanks for your response TS,

So you're using frame/frameset based page structure? That'll be a bit hard
to make the datagrid displaying without scrollbar since we can not expect
how many items will be bound to datagrid at runtime.... Is it possible to
use non-frame page for the datagrid displaying page or display it in a new
popup dialog page?

Regards,

Steven Cheng
Microsoft Online Support

Signature

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

--------------------
| From: "TS" <manofsteele1@nospam.nospam>
| References: <#dStf1D9FHA.3492@TK2MSFTNGP10.phx.gbl>
<E1sfP1I9FHA.1236@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: datagrid pixel height not respected
| Date: Tue, 29 Nov 2005 06:43:13 -0600
[quoted text clipped - 9 lines]
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet.webcontrols:31374
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webcontrols
|
[quoted text clipped - 59 lines]
| > |
| > | thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.