Welcome to the Xceed Community | Help
Community Search  

Inserting must have TwoWay binding?

Sort Posts: Previous Next
  •  10-03-2008, 6:22 PM Post no. 15891

    Inserting must have TwoWay binding?

    Sorry, this may sound like a very simple (read as stupid) question to some but I'm trying to get row insertion to work and having some trouble. The documentation for InsertionRow states:

    "Insertion and modification (read/write) of the data items contained in a grid will only function if TwoWay binding mode is used "

    Which binding must be specifically specified as TwoWay?

  •  10-03-2008, 6:45 PM Post no. 15892 in reply to 15891

    Re: Inserting must have TwoWay binding?

    The problem I have is that updates work (hit the db and are reflected in the grid) but while inserts do hit the db they are not reflected in the grid.

    I'm using a basic InsertionRow

                <xcdg:DataGridControl.View>
                    <xcdgv:TableView ShowFixedColumnSplitter="False" ShowRowSelectorPane="False" UseDefaultHeadersFooters="False" ShowScrollTip="True">
                        <xcdgv:TableView.FixedHeaders>
                            <DataTemplate>
                                <xcdg:ColumnManagerRow />
                            </DataTemplate>
                            <DataTemplate>
                                <xcdg:InsertionRow />
                            </DataTemplate>
                        </xcdgv:TableView.FixedHeaders>
                        <xcdgv:TableView.Theme>
                            <xcdg:WMP11Theme xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" />
                        </xcdgv:TableView.Theme>
                    </xcdgv:TableView>
                </xcdg:DataGridControl.View>
     

    Anyone got any bright ideas what I'm missing?

  •  10-06-2008, 9:02 AM Post no. 15906 in reply to 15892

    Re: Inserting must have TwoWay binding?

    In order for changes to be reflected in the grid, the data source must implement change notifications such as INotifyCollectionChanged.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.