Welcome to the Xceed Community | Help
Community Search  

InsertionRow Master in Master/Detail Table

Sort Posts: Previous Next
  •  12-03-2008, 9:18 AM Post no. 17325

    InsertionRow Master in Master/Detail Table

    Hi,

     

    How can I access the MasterRow/Item of a current Details InsertionRow?

    I need that to set the Relation manually in the InitializingInsertionRow handler:

     

            private void DetailConfiguration_InitializingInsertionRow(object sender, InitializingInsertionRowEventArgs e)
            {
                if (e.InsertionRow.DataContext is RowViewModel)
                {
                    (e.InsertionRow.DataContext as RowViewModel).Parent =  ?Current.MasterItem?
                }

            }

     

    Thanks in advance!

     

    Regards,

    Andreas

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.