Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
585
What kind of data collection can be used as datesource of xamGrid?
posted

XamGrid has a property ItemSource which can be used for data binding.

If I want to a editable xamGrid, what kind of data collection can be used as datesource of xamGrid?

Wcf ria service returns the default IEnumerable<T> as data collection. Can it be used for editable xamGird?

  • 21382
    Suggested Answer
    posted

    Editable?  As in changing existing rows? That would be dictated by the data object, and if there are setters on the property.

     

    Add/Delete Row able.  Well IEnumberable does not have .Remove/.Add methods, so if you want to add / remove rows you would need to be an IList<> or IEditableCollectionView with .CanAddNew / .CanRemove set properly.