Set height datagrid as height of his stackpanel, for show vertical scrollbar

Hi,
I have this GRID:
<Grid Margin="0,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="90" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
In 2° row I have:
<StackPanel Margin="0,0,0,50" Grid.Row="1" Visibility="Hidden" Name="stackPanelSearchResult">
<GroupBox>
<GroupBox.Header>
<Label Style="{StaticResource LabelFieldset}" Content="{StaticResource menuLabelGroupBoxGrid}" />
</GroupBox.Header>
<DataGrid Name="dgPlan"......
</DataGrid>
</GroupBox>
</StackPanel>
</Grid>
How can I set the height of datagrid as hegith of stackpanel for show verticarl scrollbar?
Thanks.

I don't really see you need a stackpanel or a dockpanel or an explicit size on row 1 of your grid unless for some reason you particularly want a fixed size.
You have a perfectly good headered content control there already - a groupbox.
Lose the stackpanel and do:
<GroupBox Margin="0,0,0,50" Grid.Row="1" Visibility="Hidden" Name="stackPanelSearchResult">
<GroupBox.Header>
<Label Style="{StaticResource LabelFieldset}" Content="{StaticResource menuLabelGroupBoxGrid}" />
</GroupBox.Header>
<DataGrid Name="dgPlan"......
</DataGrid>
</GroupBox>
I think it's a bit unusual to put a header on a datagrid, by the way.
Usually a datagrid is kind of the focus of attention and it's obvious what's going to be in it.
I suppose this might be a minor aspect of a complex view though.
Hope that helps.
Recent Technet articles:
Property List Editing ;  
Dynamic XAML

Similar Messages

  • How to set height of JTable Header ?

    How to set height of JTable Header and set the text to another size ?

    You can set the font of the header as you can for any component. The font will dictate the preferred height of the header. If you don't like the preferred height, you can set that as well.
    // add table to a scroll pane or the header will not appear
    JTable table = new JTable(...);
    container.add(new JScrollPane(table));
    // get a reference to the header, set the font
    JTableHeader header = table.getTableHeader();
    header.setFont(new Font(...));
    // set the preferred height of the header to 50 pixels.
    // the width is ignored by the scroll pane.
    header.setPreferredSize(new Dimension(1, 50));Mitch Goldstein
    Author, Hardcore JFC (Cambridge Univ Press)
    [email protected]

  • ADF Faces: how to set height of af:panelBorder to be % of screen height

    Hi,
    I am having hard time setting height of af:panel to be a percentage of screen height. Using inlineStyle, I tried the following but it doesn't work:
    <af:panelBorder inlineStyle="height:90.0%;">
    Any thoughts?
    Thanks
    Message was edited by:
    samsam

    Hi,
    not sure skinning can help here. There is no property on the dialog
    Frank

  • Iframe not scrolling to content below set height in IE9

    Because iframe height of 100% didn't render correctly (in any browsers) I chose a set height (600px) in which to display my clients' property listings within one of their site pages.
    All works reasonably all tested browsers (double scroll bars in Chrome and Safari -- div and iframe -- despite that the div isn't set to have such, but I can likely fix that); IE9, though, is nonfunctional:  In IE9 I get a Y scrollbar, as defined, however it does not scroll past content that fits into 600 pixel iframe height.  That is, is does not scroll to show the rest of the iframe page.
    I have tried separately defining x and y scrollers as well as simply calling for scrolling in general; no luck.
    I have been searching for hours for a fix, and have tried every combination of style coding to the iframe itself as well as the overall style sheet (to the div).  I also read the soure for the page rendered in IE9, and the style coding was as I'd written it.
    It has to be a simple fix, or others would be having this IE9 issue, too, right?
    Have even added <meta http-equiv="X-UA-Compatible" content="IE=8"> to the header; didn't change anything.
    Anyone know what is going on -- and how to fix it?
    I apologize for how jumbled both the CSS and source code is for this site.  If I were recreating the site today, I could do a much cleaner job.
    Here are a few tries:
    http://cbm1.com/retail_property_listings/costar.html
    http://cbm1.com/retail_property_listings/costar3.html
    This version (more info in the CSS, less inline) gets rid of the double scrollers in Safari and Chrome (while still working in FF) but still the same doesn't-scroll-beyond-the-600px-iframe-pane-height issue in IE9.  Tried moving the meta directive toward IE8 to immediately above the body tag as well as first meta tag on the page; neither resulted in any IE9 rendering change:
    http://cbm1.com/retail_property_listings/costar4.html
    Happy to simply paste the inline + CSS coding alone in this window, if that's easier for anyone.

    Because iframe height of 100% didn't render correctly (in any browsers) I chose a set height (600px) in which to display my clients' property listings within one of their site pages.
    All works reasonably all tested browsers (double scroll bars in Chrome and Safari -- div and iframe -- despite that the div isn't set to have such, but I can likely fix that); IE9, though, is nonfunctional:  In IE9 I get a Y scrollbar, as defined, however it does not scroll past content that fits into 600 pixel iframe height.  That is, is does not scroll to show the rest of the iframe page.
    I have tried separately defining x and y scrollers as well as simply calling for scrolling in general; no luck.
    I have been searching for hours for a fix, and have tried every combination of style coding to the iframe itself as well as the overall style sheet (to the div).  I also read the soure for the page rendered in IE9, and the style coding was as I'd written it.
    It has to be a simple fix, or others would be having this IE9 issue, too, right?
    Have even added <meta http-equiv="X-UA-Compatible" content="IE=8"> to the header; didn't change anything.
    Anyone know what is going on -- and how to fix it?
    I apologize for how jumbled both the CSS and source code is for this site.  If I were recreating the site today, I could do a much cleaner job.
    Here are a few tries:
    http://cbm1.com/retail_property_listings/costar.html
    http://cbm1.com/retail_property_listings/costar3.html
    This version (more info in the CSS, less inline) gets rid of the double scrollers in Safari and Chrome (while still working in FF) but still the same doesn't-scroll-beyond-the-600px-iframe-pane-height issue in IE9.  Tried moving the meta directive toward IE8 to immediately above the body tag as well as first meta tag on the page; neither resulted in any IE9 rendering change:
    http://cbm1.com/retail_property_listings/costar4.html
    Happy to simply paste the inline + CSS coding alone in this window, if that's easier for anyone.

  • Set height size for each state enabling browser scrollbar if needed..

    I'm working on a flex project, completely new to it. I'm trying to resize my application based on the set height size for each state. I'd like the wrapper to resize in the browser so that the  browser's scroll bar appears if needed. hope this makes sense....
    My enitial opening page I've set the height to 1000. now when I click on a link to another state from this page, we'll call it 'home' which i have set to 2000
    The page opens in its 2000 height but no scroll bar appears to scroll down in the browser...
    If anyone's done this or knows how to, I'd really appreciate your input.

    I've done something similar with a few of my apps, you have to use a little javascript on the html page and the ExternalInterface class in your app. Basically, you need to resize the "browser's" height based on your flash file.  So here's quick example:
    In your html template page (which you can edit in your flashbuilder project panel ->html-template->indext.template.html)
    in your html add the jscript function:
    <script type="text/javascript">
             function setWindowHeight(heightVal){
                 document.getElementById('theWindow').style.height=heightVal; // make sure to give the body tag an id of 'theWindow' or whatever
    </script>
    In your flashbuilder app you need to call the javascript fx, you can use the ExternalInterface class for this:
      ExternalInterface.call('setWindowHeight',val+'px');
    you need to send the jscript fx the height of your container or whatever you want it resized to....

  • Need to set height to 100%

    I need to set a web page to be 100 width and 100% height.
    I've got the width ok, as it's easy, but the height just won't
    work.
    I've set a css style to 100% height, but in safari and
    firefox, it's only 20% or so of the open window. I have a 3x3 table
    with set heights on the top 2 and bottom 2 and I need the middle
    left (which has a background colour) to fill the depth of the page
    with the bottom 2 columns right at the bottom - I just can't see
    hotw to do this.
    CS3, mac osx 10.4.9
    thanks

    http://www.apptools.com/examples/tableheight.php
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "livingwithanangel" <[email protected]>
    wrote in message
    news:f0bejo$lkm$[email protected]..
    >I need to set a web page to be 100 width and 100% height.
    I've got the
    >width
    > ok, as it's easy, but the height just won't work.
    > I've set a css style to 100% height, but in safari and
    firefox, it's only
    > 20%
    > or so of the open window. I have a 3x3 table with set
    heights on the top 2
    > and
    > bottom 2 and I need the middle left (which has a
    background colour) to
    > fill the
    > depth of the page with the bottom 2 columns right at the
    bottom - I just
    > can't
    > see hotw to do this.
    >
    > CS3, mac osx 10.4.9
    > thanks
    >

  • Set height and width of pop up page.

    hi,
    How can i set height and width of pop up page.
    Thanks

    Hi ,
    Try these inbuilt javascript functions
    html_PopUp(pURL,pageName,pWidth,pHeight) or
    popUp2(pURL,pWidth,pHeight)Thanks,
    Manish

  • Setting height for grid layout cell

    hai,
    i am creating my own layout for my framework page.i am using grid layout tag presents in htmlb.i want to set height for my grid layout cell using taglib but there is no height attribute as per i know.is there any way for that.....
    if anybody knows about it please tell me. if u have an sample code also please send me...
    regards,
    prasath

    Hi,
    Try the method setHeightPercentage in both GridLayout and GridLayoutCell classes.
    GridLayout result = new GridLayout();
    result.setHeightPercentage(100);
    Greetings,
    Praveen Gudapati
    [Points are welcome for helpful answers]

  • How to set height panelCollection

    hello all
    i have problem with UI, i can't set height panelCollection to full height in my page, and i have change StyleClass to AFStretchWidth/ AFStretchHeight
    this below structure in my project file
    template.jspx facet
    panelGroupLayout
    panelHeader
    panelCollection
    popup
    anyone help :)
    thx gan
    agungdmt

    Your PanelCollection is not stretched because neither PanelGroupLayout nor PanelHeader stretch its children. Either the PanelCollection has to be the root component or the whole hierarchy above it should be of components that stretch their children (for example, center facet of PanelStretchLayout, DecorativeBox, PanelSplitter, ShowDetailItem(stretch), etc.). Have a look here for more details:
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_orgpage.htm#CDEFAFGJ (See the last 2 columns in the table)
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_orgpage.htm#CDEECCJF
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/af_orgpage.htm#CACHIIAE
    Dimitar

  • How do I save the width and height of a photo for repeated use?

    How do I save the width and height of a picture for repeated use, rather than having to enter it each time in the 'new file' box?
    Thanks,  Ed Jackson.

    It could be that I'm older and have forgotten. I'm now 73 and will admit I have forgotten many things over the years. I have been using Photoshop since Photoshop version 3.  And can not really recall which features or changes were made in ever version of Photoshop I have installed.  Adobe has added many features over the years. The number of bugs introduce has also greatly increased after CS3.  "New Doc Sizes.psp"  in your user id preferences is edited using the two buttons in the new document dialog.
    As for guide lines in new documents Photoshop CS6 or CC seem to add some for video file presets with guide lines.  I do not know how to edit or add guide line to new doc presets. Guide line actions are easy to create. I have also seem some guideline in new documents when I did not expect any perhaps a new bug. Photoshop like most software has bugs. If you do not see Adobe new presets perhaps you copied an old  "New Doc Sizes.psp"  over Adobe's newer default file or Adobe migrared you presets and wand wiped their presets out. There are bugs. Close Photoshop down and rename your current  "New Doc Sizes.psp"  in you user id Photoshop cc preferences folder and start Photoshop it will add a dedault  "New Doc Sizes.psp"  file see if you see Adobe new presets in the new doc pull down when you select video and film...

  • [svn:fx-4.x] 14206: Fixed UITextField getMeasuredWidth,Height() methods to compensate for mirroring.

    Revision: 14206
    Revision: 14206
    Author:   [email protected]
    Date:     2010-02-17 08:33:34 -0800 (Wed, 17 Feb 2010)
    Log Message:
    Fixed UITextField getMeasuredWidth,Height() methods to compensate for mirroring. 
    QE notes: As always, this change should have no effect on components that haven't been mirrored
    Doc notes:
    Bugs:
    Reviewer: Carol
    Tests run:
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/core/UITextField.as

  • Set maximum size in Text Form Field Options for a field in bi publisher RTF

    Hi All,
    How to set maximum size in Text Form Field Options for a field in bi publisher RTF.
    I have a RTF whch is having a field in that i need to add some validation condition but after adding certain condition in Add help text tab ,it is not accepting after certain length, how i can increase the length to unlimited,please help me on this
    Thnaks

    Form fields have some restrictions if your are using version lower than 11g.
    They can accommodate only 393 chars. You can add the text in both status bar and help key, which can in total consume 393 chars.
    If your code logic is more than that, it can be split into multiple form fields as Avinash suggested or you can use sub template logic and handle coding over there. Again in sub template code can be within/outside form fields.
    So there is no option for user to increase the size of form field.

  • How do I set-up my TV as a dual monitor for my MacBook Pro?

    Hi
    I have a mid-2009 MacBook Pro running (OS X 10.8.2) Mountain Lion, and recently I rearranged my home workspace so that I can view my TV from my desk while I work.
    I would like to set-up my TV as a dual monitor for my MacBook Pro, so I can stream videos on my TV screen and have the whole screen to do work on my MacBook Pro at the same time.
    Is this possible? I've seen people use TVs as a mirror display (where it works as their main and only monitor), but never as a fully operational dual display.
    As an example, I would like to have my MacBook screen showing a desktop with the whole screen devoted to Photoshop, while I have another desktop running on my TV, which shows an internet browser or other application.
    If this is possible, what cords/hardware would I need, and what are the settings that will enable me to do this?
    - My TV is a modern flatscreen LCD, and it has two HDMI ports in the back.
    - It's about 9-10 feet from my desk.
    If anyone could help, that'd be awesome!
    Thanks.

    Yes, you can do that.
    You'll need a mini displayport to HDMI adaptor:
    http://store.apple.com/us/product/H1824ZM/A/moshi-mini-dp-to-hdmi-adapter-with-a udio-support
    and an HDMI cable long enough to reach your TV
    (look on Amazon or Monoprice for the best price on any of those parts)
    In your display options, you will just choose extended desktop vs mirrored display.

  • Using Item UIDRef, can we get data as set in "text on path option" dailog box for each "text on path" item

    Hi all,
    I have a Item UIDRef but facing a problem for getting data as set in "text on path option" dailog box for each "text on path" item.
    What I did:
    - Getting the  pointer "IMainItemTOPData" using item UIDRef as
      InterfacePtr<IMainItemTOPData> mainItemTOPData(shapesUIDRef, UseDefaultIID());
    - This interface has the method GetTOPOptionData () which return ITOPOptionsData pointer
    - But SDK don't have "ITOPOptionsData" class implementation.
    Second Approch:
    - Used "ITextOnPathSelectionSuite" and getting the correct result for Desktop plugin.But I want the correct result in server plugin also.
    Anyone who has an idea how to get this using UIDRef, please let me know.
    Regards,
    Jitendra Kumar Singh

    Hi Pulse,
    Unfortunately, Flex doesn't currently support text on a path. However, I binged it and found this:
    http://blog.tsclausing.com/post/49
    That might be useful.
    -Adam

  • HT2534 When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    When I try to set up an Apple ID, it's asking for a credit card, and there is no "None" option, like this page suggests. How can I bypass this? This iPad is for a younger child who has no credit card, and will not need to make any purchases.

    You can create an iTune and App Store account without credit card details
    1. Sign out of current Apple ID if you are sign-in to one (important)
    2. Go to App Store and select a free app
    3. Tap INSTALL APP
    4. Create New Apple ID
    5. Confirm Your Country
    6. Agree with Terms and Conditions
    7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
    8. Create and answer your secret question
    9. Select NONE for Payment Method
    10. Fill in Billing Address
    11. Submit application for new Apple ID
    12. Wait for verification email
    13. When email arrive, verify your account
    14. Start downloading your free apps

Maybe you are looking for

  • Help my HP Mini 210-1010NR PC

    I don't know why but when I'm on my netbook it keep over heating when I'm charging it. It somethimes will over heat even when it not plug in to the wall. I check the fan and it is running at all times i had a fan to put under it but that don't help i

  • Mail to proxy scenario with condition

    Hi Experts, I am using mail to proxy scenario. The mail box is having differnt files suppose: BOOKING_REF_DELIVERYNO_WB.pdf BOOKING_REF_SALESORDER_WB.PDF BOOKING_REF_CUSDECNO_WB.PDF DELIVERYNO_WB.pdf SALESORDER_WB.PDF CUSDECNO_WB.PDF BOOKING_REF_WB.p

  • Is Java FX 2.0 final releasing today or was it delayed?

    Hi! I was a huge fan of Swing.Despite others saying it's old, deprecated I really enjoyed and still, If I'd start a desktop application would use Swing (+ Substance LAF and of course the new features of Swing in Java 7).When Java FX released (version

  • KSB1 in the background without selection criteria

    Hello, advice, please. If you execute the KSB1 report in the background, the selection criteria are automatically displayed there with the header data (states within SAP Note 1174588). Is there any way how to disable this? We have got a  custom progr

  • How to call a function of a system library

    I'd like to check the login ID of the current system user. Therefor I tried via System.loadLibrary("NETWIN32") to load the requested DLL and to call the functions NWDSCreateContext and NWDSWhoAmI. After the funktion call I got the exception java.lang