How to using DataGrid Scrollbar with dinamy height
Messages   Related Types
This message was discovered on microsoft.public.dotnet.languages.jscript.

Post a new message to this list...

Alex Ortega
I'm using the following html code to present scrollbar in a DataGrid:

<div style="OVERFLOW: auto; HEIGHT: 149px">

but, I need to using dinamy height (in %), this is possible?
Reply to this message...
 
    
bruce barker
only if the parent container has an absolute height.

-- bruce (sqlwork.com)

"Alex Ortega" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
adnan boz
Hi,

Right.
U can also,
recalculate on a resize event the height of your div by using the actual
clientHeight of its container.
or use dynamic properties like on the sample below.
<div id=d1 style="OVERFLOW: auto; HEIGHT: 149px">
....script...
d1.style.setExpression("height","parseFloat(screen.availHeight) * 0.5 ");
recalc(true);

Good Luck
Adnan

"bruce barker" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Web.UI.WebControls.DataGrid
System.Windows.Forms.DataGrid




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com