Hi,
We are using sfDataGrid for one of our Projects, and we are having below issues. Please suggest the solutions for these, We are using WPF - MVVM.
Note: BlankSheetList is an ObeservableCollection of Type BlankSheet. SelectedBlankSheet is of type BlankSheet : NotificationObject
1. We are using the Selection mode as Extended. We can get the first selected item as below, which gives the first item in the selected list.
SelectionMode="Extended"
SelectedItem="{Binding SelectedBlankSheet, Mode=TwoWay}"
The Question is, how do we get a List of all the items that are selected?
Documentation says We can use SelectedItems . But that gives this error - "The Property ''SelectedItems" does not have an accessible setter"
2. We want the users to be able to add more items to the list, on a button click. However when we try the below code, even though the item gets added to the collection, it doesn't show up on the grid. We want the item to show up on the grid, as soon as it gets added to the collection.
View:
ItemsSource="{Binding BlankSheetList, Mode=TwoWay}"
ViewModel:
BlankSheetList.Add(theBS);
3. How to display the serial number for each of the item in sfDataGrid?
4. How to get a list of all the edited rows in the grid and mark it with an "*" in one of the column?
Thanks on advance for the help.
Varalakshmi