(New user of xamDataGrid 8.1)
My ultimate goal is to be able to perform my logic in my viewmodel class.
I am binding the grid to an XmlDataProvider, and currently I've got it to work sort of by hooking the SelectedItemsChanging event and adding a dummy xml attribute to the bound data indicating if it is selected or not. While seems to work it feels like a hack.
Would it possible to directly bind the IsSelected of a datarecord to an xml attribute?
Is there a better way to make the viewmodel aware of currently selected items/records without taking a reference to the grid?
that does not make any sense at all, thank you very much.
That thread doesn't appear to have anything to do with managing selections in a view model. When using MVVM, which is quickly becoming the standard for wpf development, having to fool around with code behind usually violates the purpose of the MVVM framework in the first place. It would be nice if Infragistics gets up to speed with this and tailors their controls accordingly. Its a shame that the datagrid still doesn't have a SyncWithCurrentItem property for maintaining currency which would also be a big help when binding to a ViewModel.
Hello,
We think that it is better that you change the visibility or ony other properties throught the code-behind in the FieldLayoutInitialized event.
Please take a look at this thread in the forum and I hope it would help you.
http://forums.infragistics.com/forums/p/5293/24052.aspx#24052
I would like to know this aswell, not the xmlpart but syncing selection to a property on the viewmodel.
I have the same question. Anyone have a solution?