Welcome to the Xceed Community | Help
Community Search  

Deleting rows from the data source

Sort Posts: Previous Next
  •  11-07-2008, 6:32 AM Post no. 16729

    Deleting rows from the data source

    I'm a bit confused about DataGridCollectionView and DataGridCollectionViewSource.

    I want to implement a simple "DeleteRow" method on my grid that deletes the currently seleted row(s).

    In XAML, I have defined a DataGridCollectionViewSource that is bound to my data collection(of type IEnumerable). The ItemsSource on the grid is in turn bound to this resource.

    But only the DataGridCollectionView has a Remove method, and I can't define a DataGridCollectionViewSource in XAML.

    What am I doing wrong here?

  •  11-21-2008, 5:16 AM Post no. 17080 in reply to 16729

    Re: Deleting rows from the data source

    Anyone? Is it really not possible to delete a row from within a grid? Or get a reference to a deletable collection?
  •  11-21-2008, 7:50 AM Post no. 17083 in reply to 17080

    Re: Deleting rows from the data source

    The "Deleting selected items" example in the documentation demonstrates how to delete the selected items.
    Technical Writer - Xceed Software

    In three words I can sum up everything I've learned about life: it goes on.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.