Hi,
I am working on showing status information on the number of currently selected records in xamdatagrid.
For this I am assuming that I need to bind to the SelectedItems.Count property to a textblock ? I am new to wpf and infragistics...can you please provide some sample code to achieve this?
Thanks!
I have resolved this myself. Here is the working code for WPF and VB:
'While there is a collection of the currently selected Records (i.e., myDataGrid.SelectedItems.Records)
'there is no collection that holds the DataItems of those currently selected Records.
'You have to create and populate that collection manually by iterating through the Records in
'myDataGrid.SelectedItems.Records and adding their respective DataItems to the collection.
_record =
DirectCast(_item, DataRecord)
_publicationModel =
DirectCast(_record.DataItem, PublicationModel)
_selectedPublicationModels.Add(_publicationModel)
Next
_publicationTabViewModel.PublicationSelection = _selectedPublicationModels