Home All Groups Group Topic Archive Search About

datagrid pixel height not respected

Author
28 Nov 2005 5:01 PM
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

Author
29 Nov 2005 2:33 AM
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" <manofsteele1@nospam.nospam>
| 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: <#dStf1D9FHA.3***@TK2MSFTNGP10.phx.gbl>
| 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
Show quoteHide quote
| 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
|
|
|
Author
29 Nov 2005 12:43 PM
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

Show quoteHide quote
"Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message
news:E1sfP1I9FHA.1236@TK2MSFTNGXA02.phx.gbl...
> 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" <manofsteele1@nospam.nospam>
> | 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: <#dStf1D9FHA.3***@TK2MSFTNGP10.phx.gbl>
> | 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
> |
> |
> |
>
Author
30 Nov 2005 1:43 AM
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" <manofsteele1@nospam.nospam>
| References: <#dStf1D9FHA.3***@TK2MSFTNGP10.phx.gbl>
<E1sfP1I9FHA.1***@TK2MSFTNGXA02.phx.gbl>
| 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: <OxDayJO9FHA.3***@TK2MSFTNGP14.phx.gbl>
| 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
Show quoteHide quote
| 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
|
| "Steven Cheng[MSFT]" <stch***@online.microsoft.com> wrote in message
| news:E1sfP1I9FHA.1236@TK2MSFTNGXA02.phx.gbl...
| > 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" <manofsteele1@nospam.nospam>
| > | 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: <#dStf1D9FHA.3***@TK2MSFTNGP10.phx.gbl>
| > | 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
| > |
| > |
| > |
| >
|
|
|