This question is locked. New answers and comments are not allowed.
I have a issue I haven't found any solution for so far and hopefully you can help me.
I have a GridView that I bind a IEnumerable<MyViewModel> to. I have a few static resources as well to be able to get the
GridViewComboBoxColumn to work.
This issue is that when I initially load my data and bind it, it all looks just fine. When I then select a row, edit a value
and then click on an other row, the row with the edited value will disappear. If I reload the data I can see all the rows again,
but this issue will always happen every time I reload and the data is rebounded.
Edit: This will only happen for the changes for the very first row I change values in as well. When that row is gone, I can change the other rows with no issues at all.
Edit2: This seems to happen when I have a binding to my ViewModel. If I bind it to a Enumerable<Task> directly it seems to not occur.
My TaskViewModel look like this:
I have a GridView that I bind a IEnumerable<MyViewModel> to. I have a few static resources as well to be able to get the
GridViewComboBoxColumn to work.
This issue is that when I initially load my data and bind it, it all looks just fine. When I then select a row, edit a value
and then click on an other row, the row with the edited value will disappear. If I reload the data I can see all the rows again,
but this issue will always happen every time I reload and the data is rebounded.
Edit: This will only happen for the changes for the very first row I change values in as well. When that row is gone, I can change the other rows with no issues at all.
Edit2: This seems to happen when I have a binding to my ViewModel. If I bind it to a Enumerable<Task> directly it seems to not occur.
<telerik:RadGridView CanUserReorderColumns="False" RowIndicatorVisibility="Collapsed" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" FrozenColumnCount="1" Margin="10" Grid.Row="1" ShowGroupPanel="False" ItemsSource="{Binding MyViewModels}" SelectedItem="{Binding SelectedTask, Mode=TwoWay}" AutoGenerateColumns="False"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn UniqueName="ProductCode" DataMemberBinding="{Binding Task.ProductCode}" Header="Task (Product Code)" IsGroupable="False"/> </telerik:RadGridView.Columns></telerik:RadGridView>My TaskViewModel look like this:
public class MyViewModel: ViewModelBase{ public MyViewModel(MyParentViewModel parentViewModel, TaskEntity task) { ParentViewModel = parentViewModel; Task = task; } public MyParentViewModel ParentViewModel { get; private set; } public TaskEntity Task { get; private set; }}