Height of a Tile (or orther container) not changed after inserting nodes

Hi,
I am a javafx beginner and I'm struggeling with the size of the containers. Here is what I try to do:
I am making a photo gallery in which an Album can contain subalbums and photos through which a user can scroll. The Album objects are stored in a Tile, the Photo objects in another Tile. These Tiles I want to display vertically in a VBox, which is in turn placed on a Clipview. Now my problem is: the height of the Tile is not changing when I insert Photos or Albums in the Tiles. And I need these heights (or that of the VBox) to do calculations for my scrollbar. When I print the bounds for the album Tile before inserting Album objects everything is 0, which is correct. But when I print the bounds after insertion of 10 Albums the height is given as the height of only 1 Album, even without hgap and vgap. The height of the VBox is also equal to this height of 1 node.
What am I missing here? How can I get the correct height to use for my scrollbar calculations?
I hope you can help me out, because it's hunting me for days now :-)
Thanx,
RedMary

Well, that's one of the mysteries of JavaFX: the initialization order... :-)
When you create the custom node, it is not yet in layout, so the tile isn't laid out either, and its dimensions aren't final.
If I add a button to the scene to dump the data, you can see the final dimensions.
I also tried a trick this week-end, to override doLayout to know when a node have been laid out. A quick test shown mixed results, but perhaps it can be a starting point.
class Gallery extends CustomNode {
    var albumList = Tile {
        width: 1000
        vgap: 25
        hgap:25
        content: []
    var photoList = Tile {
        width: 1000
        vgap: 25
        hgap:25
        content: []
    var box = VBox {
        spacing: 50
        content: [albumList,photoList]
        override function doLayout(): Void
            super.doLayout();
            ShowData("After B layout");
    public override function create(): Node {
        ShowData("Before insertion:");
        for (i in [1..10]) {
             var rect = Rectangle {
                 width: 100;
                 height: 100;
                 fill: Color.RED;
             insert rect into albumList.content;
         for (i in [1..15]) {
             var rect = Rectangle {
                 width: 100;
                 height: 100;
                 fill: Color.WHITE;
             insert rect into photoList.content;
        ShowData("After insertion:");
        var group = Group {
            content:[box]
            override function doLayout(): Void
                super.doLayout();
                ShowData("After G layout");
        return(group)
    function ShowData(msg: String): Void {
        println("==> {msg}");
        println("albumList LayoutBounds:{albumList.layoutBounds}");
        println("albumList BoundsInLocal:{albumList.boundsInLocal}");
        println("albumList BoundsInParent:{albumList.boundsInParent}");
        println("box LayoutBounds:{box.layoutBounds}");
        println("box BoundsInLocal:{box.boundsInLocal}");
        println("box BoundsInParent:{box.boundsInParent}");
Stage {
    title: "Application title"
    width: 1000
    height: 800
    var gallery = Gallery {}
    scene: Scene {
        width: 1000
        height: 800
        fill: Color.BLACK;
        content: [
            gallery,
            Button {
                text: "D"
                action: function (): Void {
                    gallery.ShowData("On button click");
}

Similar Messages

  • PO Release Strategy not changed after deletion of few line items with less

    Subject : PO Release Strategy not changed after deletion of few line items with less Total PO
    Dear Friends
    We have issue with PO Release strategy. We have created the PO. with release strategy  with multiple approvers.  After approval of first approval manager , one of the PO line item got deleted and Total PO value is reduced . The new PO value should have changed the PO release strategy. But it is not changed. Old release strategy only showing in the PO which is wrong. 
    Details of the PO
    PO no 4500000123 with 5 line items Total PO value : 100,000 USD Release strategy : AB
    PO line item 5 deleted. Now total PO value changed to 50,000 USD and the PO release strategy should have been changed to AA but not changed. Still showing PO release strategy AB only.
    Are there any OSS notes available to correct his bug.
    Please let me know if you need more details
    Thanks in Advance
    Thanks
    MVS

    Hi,
    release indicators  change it to 4.It may works. Please explore to all 6 indicators..........
    i.e,
    1-cannot be changed
    2-changable,no new determination of strategy
    3-changable,new release in case of strategy
    4-changable,new release in case of strategy or value change
    5-changable,new release if new strategy/outputted
    6-changable,new release if new strategy or value changed/ outputted......
    And check   Characteristic description and value in Classification  of Release strategies ........
    I hope this will help you. Thanking you.
    Regards,
    Venkat.

  • Partititon1,2,3 in  group ODS,FAC status not change after data redistribute

    Hello,
    first thanks for your help. By now the db2 data redistribute has been sucessful. but another issue occurs , could you give me some suggestion?
    1. run Tcode dbacockpit-->db2 for linux, unix, and windows database > configuration>database partiton group
    i found the stutus in db partion group NGRP_FAC_AB7 and NGRP_ODS_AB7 and partion 1,2.3. is partion not in partitioning map containers created. I know if we want to change the status from this to partion in partioning map status , we should do a redistribute.
    i have made a redistribute action like this
    1. double click what i want to distribute
    2. select the relevant partition , for example partition 0001
    3 click the execute immediatelly button .
    when i finished , the status is not changed . so i change the redistribute log located in /db2/db2ab7/sqllib/redist/ AB7.NGRP_FACT_AB7.2008022808582 .
    the log message is
    Data Redistribution cannot be continued.
    Error: Redistribution failed with SQLCODE=-6047 (rc=-2145779603).
    the SQL 6047 detail information is like the following. I don't know what happens.
    it's a SAP bug just like the previous issue ? Could you give me some suggestion ? Thanks
    db2 => ? sql6047
    SQL6047N Database partition group cannot be redistributed
    because table "<name>" does not have a partitioning
    key.
    Explanation:
    At least one table in the single-node database partition does not
    have a partitioning key. All tables in the single-node database
    must have a partitioning key before the database partition group
    can be redistributed to a multiple-node database partition
    group.
    The operation was not performed.
    User Response:
    Use the ALTER TABLE command to specify partitioning keys for
    tables that do not have one. Then try the request again

    Before redistribution, do your tables reside on only one partition? Does the error message you get list the table or tables that do not have a partitioning key?
    All fact tables, ODS tables and PSA tables are created with a partitioning key in a SAP BI system. However, in the FACT and ODS tablespace, there are a few BI management tables (name starting with 'RS') that do not get a partitioning key by default if created in a tablespace on only one partition. The BI data distribution wizard in the DBA Cockpit takes care of some of these tables, for example RSDMFACTAB and RSDMODSTAB. Maybe there are some additional ones.
    Please list the names of the tables without partitioning key. If the error message does not contain them, you can get them with the following SQL statement:
    select varchar(tabname,30)
    from syscat.tables a
    where tbspace='<your_tablespace>'
      and not exists (select partkeyseq from syscat.columns b
                             where a.tabschema=b.tabschema and a.tabname=b.tabname
                                      and b.partkeyseq > 0)
    Brigitte

  • URL is not change after successful authenticate with ISE 1.1.1

    Hi,
    I have setup Cisco Identity Service Engine (1.1.1) with Wireless LAN Controller (7.2.110)
    Everything is complete unless the URL redirect. My guest client can join the Guest SSID and also can authenticate to ISE.
    But after they success to authenticate with ISE, the URL in the browser doesn't change to the pre-configure. It still be something like https://ise-ip:8443/guestportal/redir.html . Anyway the content in the browser is changed to the URL that being configured such as http://www.google.com/
    How can I do with this situation cause everything is working fine but only the browser URL that is not change to the preconfigure one.
    Thanks,
    Pongsatorn

    Hi,
    This is the user experience when using central web authentication:
    http://www.cisco.com/en/US/products/ps11640/products_configuration_example09186a0080ba6514.shtml#final
    Here is the process when you use local web authentication:
    http://www.cisco.com/en/US/docs/security/ise/1.1/user_guide/ise_guest_pol.html#wp1295223
    Hope this helps,
    Tarik Admani
    *Please rate helpful posts*

  • External Hyperlinks Will Not Change after Publishing

    Hi - I'm running the most up to date iWeb and trying to publish external hyperlinks that will not change no matter what I do. They do not overlap, there is no image blocking them, and I have checked and rechecked that they work on iWeb perfectly. I have tried saving each update individually with the inspector, publishing each update individually, re-entering each url then tab or enter - basically everthing suggested on these forums. The site is scullyfilm.com and the external links are to my pages on my squarespace site.
    Any ideas?

    It's very simple to do and it's virtually impossible to do it wrong.
    Here's how I did it.
    Went to Squarespace :
    http://scullyfilm.squarespace.com/
    Right-clicked a link and copied it :
    In iWeb, selected a button and made it a hyperlink. iWeb automagically places the copied link in the URL field :
    Repeated for other 3 links.
    There's currently ONE hyperlink on your page (last updated 20140113) :
    http://scullyfilm.com/scullyfilm/HOME.html
    and it links to :
    http://scullyfilm.com/casting/
    which does not exist.

  • Content-Length header not changed after url-rewrite... yields cut page.

    We use iPlanet6 ,service pack 4. The pages that return from the servlets are
    changed by the Application Server. The Application Server adds
    GXHC_GX_jst=901a10a6662d6164& to the all the URLs (which increase the
    page's size). The problem is that Application Server does not change the
    Content-Length header in the servlet response. This yields cut pages in the
    browser (IExplorer5).
    If we don't add the Content-Length header it works fine. (I.e., The pages
    are not cut.) Our problem is that we work with mobile devices that must have
    the Content-Length header to work properly.
    Q: Do you know if there is a patch that fix the problem?
    Q: Is it possible to configure the Application Server to prevent this
    url-rewrite?
    Regards,
              Aviram

    Hi guys,
    I would like to do url rewriting on our CF app but am worried I'll break something if I try and do it myself - is there anyone who would be interested in a bit of consultancy to help us achieve this?
    I want to turn http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    into http://www.allchichesterjobs.com/part-time-jobs
    I've tried this using IIS and URL Rewrite, when I browsed to http://www.allchichesterjobs.com/search-results.cfm?sector=21&q=part-time-jobs
    my browser was redirected to http://www.allchichesterjobs.com/part-time-jobs ok - but then I got a 404 error
    I'm wondering if I can pay someone to remote view my screen while we talk on skype and tell me what to do?
    Hope it's ok to post this sort of request on here
    Thanks very much indeed.
    Nick

  • Boot file not changed after XP was removed!!

    I installed XP on my macbook pro but when i removed the XP partition, the boot file was not changed. Every time i restart the computer it boots into the windows partition and tells me that no drive was found. In order to boot in OS X i have to hold the option key and choose the OS X drive which is the only one that appears on the screen... Any one know how to fix this problem?
    Alex

    You might want to reread the setup guide; you can use Startup Disk preference pane to establish a default boot disk.
    Doug

  • My safari did not change after downloading mountain lion

    I thought everying was suppose to look the same on all devices with Mountain Lion? on my ipad and iphone safari did not change.

    What do you mean by "look the same"?
    Installing Mountain Lion on your Mac does not change the visual appearance of the Safari app on your iPad and iPhone. In fact, installing Mountain Lion does nothing at all to your iOS devices.

  • Template not changing after updating

    Hi There
    I am just starting out with CS3 and it is like nothing I have
    ever experienced before. I have several problems which I just
    cannot work through and I am wondering if they are all linked to
    one simple reasoning - that I need to do a basic course which tells
    me all these basic points.
    - My templates have always updated fine until now.
    1. I have one site that the title will not change on the
    other pages that are based on the template, so when I change the
    title from main template to services and hit enter, it justs goes
    straight back to saying main template.
    2. I have another site that I changed the bottom navigation
    table and now it won't update in the other pages.
    3. I have yet another site that I changed the background, so
    that it now has a Fireworks background that I saved and imported.
    That came out fine on the template page, but then when I added new
    pages and updated the other pages, they wouldn't show the new
    background
    There are a couple of tables in this template and the text
    comes out different on some of the other pages to that on the
    actual template page - why does this happen? It is so frustrating.
    I haven't messed around with it. I just insert the table, write in
    the text and then edit the text to the size and colour. So, why is
    it inconsistent?
    I have heaps of other questions as well, but will maybe just
    post them as they become on the desperate list. I do wonder though,
    if there are some things that are basic knowledge that I need to
    know because I seem to be wasting alot of unnecessary time trying
    to work things out that seem basic.

    On Wed, 15 Aug 2007 01:24:16 +0000 (UTC), "Breezy Cam"
    <[email protected]> wrote:
    >
    >
    > Hi There
    >
    > I am just starting out with CS3 and it is like nothing I
    have ever experienced
    >before. I have several problems which I just cannot work
    through and I am
    >wondering if they are all linked to one simple reasoning
    - that I need to do a
    >basic course which tells me all these basic points.
    >
    > - My templates have always updated fine until now.
    >
    > 1. I have one site that the title will not change on the
    other pages that are
    >based on the template, so when I change the title from
    main template to
    >services and hit enter, it justs goes straight back to
    saying main template.
    > 2. I have another site that I changed the bottom
    navigation table and now it
    >won't update in the other pages.
    > 3. I have yet another site that I changed the
    background, so that it now has a
    >Fireworks background that I saved and imported. That came
    out fine on the
    >template page, but then when I added new pages and
    updated the other pages,
    >they wouldn't show the new background
    > There are a couple of tables in this template and the
    text comes out different
    >on some of the other pages to that on the actual template
    page - why does this
    >happen? It is so frustrating. I haven't messed around
    with it. I just insert
    >the table, write in the text and then edit the text to
    the size and colour.
    >So, why is it inconsistent?
    >
    > I have heaps of other questions as well, but will maybe
    just post them as they
    >become on the desperate list. I do wonder though, if
    there are some things
    >that are basic knowledge that I need to know because I
    seem to be wasting alot
    >of unnecessary time trying to work things out that seem
    basic.
    >
    >
    If you really do want help, take one site at a time. Post the
    URL and
    the problems you're having that are specific to that site.
    Chances are folks will be able to help you.
    Win
    Win Day, Wild Rose Websites
    http://www.wildrosewebsites.com
    [email protected]
    Skype winifredday

  • HU status not changing after GR

    Hi All,
    For a stock transfer order we create outbound delivery and create HU and then do PGI and at the receiving site we do GR via HU in MIGO transaction.
    however the status of the HU changes after it is created and after it is PGI ,,, but after doin GR the status does not change.
    Please help me with this ,,,
    Regards,
    Samuel

    hi,
    I am doing GR in MIGO transaction with respect to outbound delivery via HU, I am not creating inbound delivery.
    Regards,
    Samuel

  • Am trying to insert new cartridge in Image Class D530. Toner cover will not close after insertion?.

    I am trying to insert new toner cartridge in Image Class D530 laser printer.  After insertion of cartridge, correctly I think, the toner cover will not close. What am I doing wrong?

    Hi Sparrow.
    What is the model number of the toner cartridge that you are experiencing issues with?  The imageCLASS D530 supports the Canon Cartridge 128.
    Please follow the instructions below to insert the toner cartridge.  Ensure that both sides are level as you are inserting the cartridge in the machine:
    1.  Verify that the orange tabs and sealing tape have been removed.
    2.  Insert the toner cartridge.
    Fit the protrusions (A) on each side of the toner cartridge into the guides located on each side of the machine. Slide the toner cartridge into the machine, until the toner cartridge meets the back of the machine.
    I hope this information is helpful to you.  Should you need further assistance, please contact us at 1-800-OK-CANON (1-800-652-2666).
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Images not changing after upload ?

    Has anyone ever had this happen ? I have a site like a
    myspace type social community site and well some people have been
    having a problem where they upload the picture and it does not
    change for them ? When I refresh on my end it shows up just fine
    but on there end its showing up as the old picture, this is of
    cource after they have hit reload, cleared out the chache etc .. I
    am not sure what could be causeing it, could there be some odd
    server cacheing going on ?
    Anyhow any help would be awsome thanks !
    Mike.

    Try reloading the page once with code like this:
    <head>
    <script>
    function reloadItOnce(){
    if (self.name != 'xrefreshedx')
    self.name = 'xrefreshedx';
    self.location.reload(true);
    else self.name = '';
    </script>
    </head>
    <body onLoad="reloadItOnce()".........

  • Services not starting after a node crash

    hi
    We have a 3 node cluster and one of the nodes crashed today, also the services did not get relocated to the other node and when we try to manullay stop/start/relocate the service we get the following error
    srvctl stop service -d BCB -s BCB_J2EE -f
    PRCD-1085 : Failed to stop service BCB_J2EE
    PRCR-1065 : Failed to stop resource ora.BCB.BCB_j2ee.svc
    CRS-2533: Server 'bcb528' is down. Unable to perform the operation on 'ora.BCB.BCB_j2ee.svc'
    Would anyone has seen this before
    Thx
    JJ

    this is what i can find in log
    [   CRSPE][60] Server [bcb528] is unreachable. Stopping the sequencer for: bcbCRON 1 1
    2011-02-28 08:15:21.778: [   CRSPE][60] Sequencer for [bcbCRON 1 1] has completed with error: CRS-2533: Server 'bcb528' is down. Unable to pe
    rform the operation on 'bcbCRON'
    2011-02-28 08:15:21.778: [   CRSPE][60] Required instruction failed in op: START of [bcbCRON 1 1] on [bcb529] : 105247290
    2011-02-28 08:15:21.781: [UiServer][62] Container [ Name: ORDER
    MESSAGE:
    TextMessage[CRS-2533: Server 'bcb528' is down. Unable to perform the operation on 'bcbCRON']
    MSGTYPE:
    TextMessage[1]
    OBJID:
    TextMessage[bcbCRON 1 1]
    WAIT:
    TextMessage[0]

  • Config Register Not changing after reload

    Hi Al,
    I am having an issue with a Cisco 3850 Catalyst switch, issue as below:
    - Current config register is 0x142 and have configured the config register to 0x102 but even after reload the new config register does not come in place.
    - Have reloaded the switch 2x but with no luck. Changed the config register on the primary and secondary switch yet no luck. It is running SSO.
    Show version:
    sh ver
    Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.03.02SE RELEASE SOFTWARE (fc2)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2014 by Cisco Systems, Inc.
    Compiled Thu 20-Feb-14 21:17 by prod_rel_team
    Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.
    All rights reserved.  Certain components of Cisco IOS-XE software are
    licensed under the GNU General Public License ("GPL") Version 2.0.  The
    software code licensed under GPL Version 2.0 is free software that comes
    with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
    GPL code under the terms of GPL Version 2.0.
    (http://www.gnu.org/licenses/gpl-2.0.html) For more details, see the
    documentation or "License Notice" file accompanying the IOS-XE software,
    or the applicable URL provided on the flyer accompanying the IOS-XE
    software.
    ROM: IOS-XE ROMMON
    BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 1.2, RELEASE SOFTWARE (P)
    XXXX uptime is 1 day, 13 hours, 53 minutes
    Uptime for this control processor is 1 day, 13 hours, 56 minutes
    System returned to ROM by reload at 23:44:31 ADST Wed Feb 26 2014
    System restarted at 23:50:23 ADST Wed Feb 26 2014
    System image file is "flash:packages.conf"
    Last reload reason: Reload command
    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.
    A summary of U.S. laws governing Cisco cryptographic products may be found at:
    http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    If you require further assistance please contact us by sending email to
    [email protected].
    License Level: Lanbase
    License Type: Permanent
    Next reload license Level: Lanbase
    9 Virtual Ethernet interfaces
    56 Gigabit Ethernet interfaces
    8 Ten Gigabit Ethernet interfaces
    2048K bytes of non-volatile configuration memory.
    4194304K bytes of physical memory.
    250456K bytes of Crash Files at crashinfo:.
    250456K bytes of Crash Files at crashinfo-2:.
    1609272K bytes of Flash at flash:.
    1609272K bytes of Flash at flash-2:.
    0K bytes of Dummy USB Flash at usbflash0:.
    0K bytes of Dummy USB Flash at usbflash0-2:.
    0K bytes of  at webui:.
    Base Ethernet MAC Address          :
    Motherboard Assembly Number        :
    Motherboard Serial Number          :
    Model Revision Number              :
    Motherboard Revision Number        :
    Model Number                       :
    System Serial Number             :
    Switch Ports Model              SW Version        SW Image              Mode  
    *    1 32    WS-C3850-24T       03.03.02SE        cat3k_caa-universalk9 INSTALL
         2 32    WS-C3850-24T       03.03.02SE        cat3k_caa-universalk9 INSTALL
    Switch 02
    Switch uptime                      : 1 day, 13 hours, 56 minutes
    Base Ethernet MAC Address          :
    Motherboard Assembly Number        :
    Motherboard Serial Number          :
    Model Revision Number              :
    Motherboard Revision Number        :
    Model Number                       : WS-C3850-24T
    System Serial Number               :
    Configuration register is 0x142 (will be 0x102 at next reload)

    I have a 3850 switch with an identical issue.  I have been unable to get the device to boot using the existing config .
    I have the following output in 'sh ver'
    Configuration register is 0x142 (will be 0x102 at next reload)
    BUT the device does not reload with 0x102, at the next reload, but continues to exhibit identical behaviour after repeated reboots.
    Kind regards

  • DataGrid not reflecting changes after INSERT into Table. Delete from Table does.

    Wow, it's been a while.
    Hope you guys can help.
    This is my DataGrid:
    <DataGrid DataContext="{StaticResource TableAssetsViewSource}" ItemsSource="{Binding}" x:Name="TableAssetsDataGrid" AutoGenerateColumns="False" EnableRowVirtualization="True" Margin="15,10,10,10" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.Column="1" HeadersVisibility="Column" CanUserResizeRows="False" IsReadOnly="True">
    <DataGrid.CellStyle>
    <Style TargetType="DataGridCell">
    <Setter Property="BorderThickness" Value="0"/>
    </Style>
    </DataGrid.CellStyle>
    <DataGrid.Columns>
    <DataGridTextColumn x:Name="NodeColumn" Binding="{Binding node}" Header="VS Number" Width="*"/>
    <DataGridTextColumn x:Name="SerialColumn" Binding="{Binding serial}" Header="Serial Number" Width="*"/>
    <DataGridTextColumn x:Name="NameColumn" Binding="{Binding name}" Header="Asset Name" Width="*"/>
    <DataGridTextColumn x:Name="TypeColumn" Binding="{Binding type}" Header="Asset Type" Width="*"/>
    <DataGridTextColumn x:Name="_dateColumn" Binding="{Binding date}" Header="Date Allocated" Width="*"/>
    <DataGridTextColumn x:Name="PoColumn" Binding="{Binding po}" Header="Purchase Order" Width="*"/>
    </DataGrid.Columns>
    </DataGrid>
    This is where I add a new Row to the Table:
    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
    Dim cbblocation As ComboBox = Me.FindName("LocationComboBox")
    Dim row As DataRowView = DirectCast(cbblocation.SelectedItem, DataRowView)
    Dim cbbtext As String = row.Item("node")
    Dim cbbtype As ComboBox = Me.FindName("comboBoxType")
    Dim cbbtext2 As String = cbbtype.Text
    Dim RETAILISOAMDDataSet As Retail_ISO_AMD.RETAILISOAMDDataSet = CType(Me.FindResource("RETAILISOAMDDataSet"), Retail_ISO_AMD.RETAILISOAMDDataSet)
    Dim RETAILISOAMDDataSetTableAssetsTableAdapter As Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter = New Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter()
    RETAILISOAMDDataSetTableAssetsTableAdapter.AddNewAsset(cbbtext, txbSerial.Text, txbName.Text, cbbtext2, Date.Today, txbPO.Text)
    node = cbbtext
    Dim mp As New MainPage
    mp.RefreshGrid(node)
    Me.Close()
    End Sub
    The RefreshGrid method:
    Public Sub RefreshGrid(node As String)
    Dim RETAILISOAMDDataSet As Retail_ISO_AMD.RETAILISOAMDDataSet = CType(Me.FindResource("RETAILISOAMDDataSet"), Retail_ISO_AMD.RETAILISOAMDDataSet)
    Dim RETAILISOAMDDataSetTableAssetsTableAdapter As Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter = New Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter()
    RETAILISOAMDDataSetTableAssetsTableAdapter.FillByNode(RETAILISOAMDDataSet.tableAssets, node)
    Dim TableAssetsViewSource As System.Windows.Data.CollectionViewSource = CType(Me.FindResource("TableAssetsViewSource"), System.Windows.Data.CollectionViewSource)
    Dim be As BindingExpression = BindingOperations.GetBindingExpression(TableAssetsViewSource, CollectionViewSource.SourceProperty)
    be.UpdateTarget()
    End Sub
    And this is what I use to delete a row from the table (and without doing anything special, the DataGrid auto-updates with the changes):
    Private Sub Button_Click_4(sender As Object, e As RoutedEventArgs)
    If TableAssetsDataGrid.SelectedIndex = -1 Then
    MsgBox("You have selected nothing to Delete!", MsgBoxStyle.OkOnly, "Nothing Selected")
    Else
    Dim dgv As DataGridTextColumn = Me.FindName("NodeColumn")
    Dim row As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText As String = row.Item("node")
    Dim dgv2 As DataGridTextColumn = Me.FindName("SerialColumn")
    Dim row2 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText2 As String = row.Item("serial")
    Dim dgv3 As DataGridTextColumn = Me.FindName("NameColumn")
    Dim row3 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText3 As String = row.Item("name")
    Dim dgv4 As DataGridTextColumn = Me.FindName("TypeColumn")
    Dim row4 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText4 As String = row.Item("type")
    Dim dgv5 As DataGridTextColumn = Me.FindName("_dateColumn")
    Dim row5 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText5 As String = row.Item("date")
    Dim dgv6 As DataGridTextColumn = Me.FindName("POColumn")
    Dim row6 As DataRowView = DirectCast(Me.TableAssetsDataGrid.SelectedItem, DataRowView)
    Dim dgvText6 As String = row.Item("po")
    Dim RETAILISOAMDDataSet As Retail_ISO_AMD.RETAILISOAMDDataSet = CType(Me.FindResource("RETAILISOAMDDataSet"), Retail_ISO_AMD.RETAILISOAMDDataSet)
    Dim RETAILISOAMDDataSetTableAssetsTableAdapter As Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter = New Retail_ISO_AMD.RETAILISOAMDDataSetTableAdapters.tableAssetsTableAdapter()
    RETAILISOAMDDataSetTableAssetsTableAdapter.RemoveAsset(dgvText, dgvText2, dgvText3, dgvText4, dgvText5, dgvText6)
    Dim cbb As ComboBox = Me.FindName("cbbLocation")
    Dim row7 As DataRowView = DirectCast(cbb.SelectedItem, DataRowView)
    Dim cbbtext As String = row.Item("node")
    RefreshGrid(cbbtext)
    End If
    End Sub
    --------- End of Edit
    It is bound to a Dataset which gets it's data from a SQL Database.
    Loading the Data and Filtering the data based on certain conditions work 100%. The problem I am having is as follows:
    I have a form on the Page that takes input and inserts a row into the Database. When this happens, the DataGrid won't automatically reflect the changes (even if I recall the Fill Method of the Dataset). No matter what I do, I have to refresh the entire page
    and THEN Fill the Dataset to see any changes.
    This is what strikes me as odd...
    When I do a delete row operation on the Database (Custom Method on the Dataset with conditions), and just Fill the Dataset again (without doing anything special), the row deletes and the changes is reflected IMMEDIATELY.
    What am I doing wrong here? Why would Delete Row reflect the changes on the DataGrid but no Insert Row?
    Thanks in Advance.
    (P.S. I am very rusty with my developing skills, I haven't done this in YEARS)

    >>And what about the the most important question, how exactly is TableAssetsViewSource defined in the XAML markup and what is
    its Source property set or bound to? And what about the reproducable sample...?
    Here is the Markup of the TableAssetsViewSource:
    <Page.Resources>
    <local:RETAILISOAMDDataSet x:Key="RETAILISOAMDDataSet"/>
    <CollectionViewSource x:Key="TableRegionsViewSource" Source="{Binding tableRegions, Source={StaticResource RETAILISOAMDDataSet}}"/>
    <CollectionViewSource x:Key="TableLocationsViewSource" Source="{Binding tableLocations, Source={StaticResource RETAILISOAMDDataSet}}"/>
    <CollectionViewSource x:Key="TableAssetsViewSource" Source="{Binding tableAssets, Source={StaticResource RETAILISOAMDDataSet}}"/>
    </Page.Resources>
    The ItemsSource of the DataGrid is bound to the TableAssetsViewSource:
    <DataGrid DataContext="{StaticResource TableAssetsViewSource}" ItemsSource="{Binding}" x:Name="TableAssetsDataGrid" AutoGenerateColumns="False" EnableRowVirtualization="True" Margin="15,10,10,10" RowDetailsVisibilityMode="VisibleWhenSelected" Grid.Column="1" HeadersVisibility="Column" CanUserResizeRows="False" IsReadOnly="True">
    Just remember, this code was auto-generated with the drag & drop onto the Page, so I did little in terms of setting the actual bindings.
    All in all, what I have done so far works as intended, except that when I want to add a row to the table it does not reflect, and that it only shows after refreshing/restarting the application.
    I will try and put together a reproducable sample.

Maybe you are looking for

  • My ipod nano 7th generation is stuck in a restore loop with a white screen. Now it won't turn on anymore. What to do?

    My new Ipod Nano 7th generation is stuck in a restore loop. Here is what happened: I added music to it using the latest version of iTunes, the colored bar at the bottom of the summary tab in iTunes showed my that I added it and I disconnected it to l

  • Actions saving as .html instead of .jpg

    I have cs6 photoshop and when i use actions the file is being saved as .html instead of .jpg....  please help

  • Measuremen​t Studio with TFS Build Server

    Hello, I searched for both a FAQ and specific answers, so I hope I'm asking my question in the correct place. I am using the Enterprise version of Measurement Studio, and want to start a continuous build process using Team Foundation Server.  Adding

  • When converting to AAC?

    I just got my iPod Nano and I have about 1700 mp3's now I'd like to convert them a little at a time to AAC because converting them all at once will take all day. But when I convert say 100 and then try again if I already converted a song it doesn't s

  • Creating a network bridge from ethernet to wifi for xbox

    Hey guys, I'm trying to create a network bridge from eth0(ethernet port) to ra0(wifi) in an attempt to avoid buying a wireless adapter for my new Xbox 360 I got this Christmas. With Windows, it looks incredibly simple(just going into network settings