datagrid pixel height not respected

T

TS

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
 
S

Steven Cheng[MSFT]

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

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





--------------------
| From: "TS" <[email protected]>
| Subject: datagrid pixel height not respected
| Date: Mon, 28 Nov 2005 11:01:35 -0600
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80
| 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
|
| 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
|
|
|
 
T

TS

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
 
S

Steven Cheng[MSFT]

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

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "TS" <[email protected]>
| References: <#[email protected]>
<[email protected]>
| Subject: Re: datagrid pixel height not respected
| Date: Tue, 29 Nov 2005 06:43:13 -0600
| Lines: 73
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80
| 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
|
| 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,
| >
| > 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
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| >
| >
| >
| >
| >
| > --------------------
| > | From: "TS" <[email protected]>
| > | Subject: datagrid pixel height not respected
| > | Date: Mon, 28 Nov 2005 11:01:35 -0600
| > | Lines: 7
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| > | X-RFC2646: Format=Flowed; Original
| > | Message-ID: <#[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.aspnet.webcontrols
| > | NNTP-Posting-Host: 101nat080.tea.state.tx.us 198.214.101.80
| > | 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
| > |
| > | 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
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,141
Messages
2,570,813
Members
47,357
Latest member
sitele8746

Latest Threads

Top