This is a migrated thread and some comments may be shown as answers.

Checkbox Update in GridView

1 Answer 82 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Marcel asked on 03 Oct 2011, 11:31 AM
Hi, 

so i have checkboxes in my gridview. The bool's which are related to this check boxes are updated outside of the grid, but the grid itself is not updating the view unless resize/invalidate the gridview. 

<telerik:RadGridView HorizontalAlignment="Left" EditTriggers="CellClick"
                                 AutoGenerateColumns="False" DataContext="{Binding Path=_reviewGridVM}" 
                                 Name="ReviewControlGrid" VerticalAlignment="Top" RowDetailsVisibilityMode="VisibleWhenSelected" 
                                 Grid.Column="0" Grid.Row="0" ItemsSource="{Binding Path=answers}">
                              
               
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn Header="#" DataMemberBinding="{Binding Question}"/>
                    <telerik:GridViewDataColumn Header="Accept" DataMemberBinding="{Binding Accept}" />
                    <telerik:GridViewDataColumn Header="Reject" DataMemberBinding="{Binding Reject}" />
                </telerik:RadGridView.Columns>
                
            </telerik:RadGridView>

In the code the ItemSource answers is updated, but the grid doesn't update. How can I solve this issue? 

Thansk 

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 03 Oct 2011, 12:34 PM
Hello Chez,

You need to implement INotifyPropertyChanged Interface. Thus, once a particular property is updated, the grid will be notify and the corresponding value will be updated as well.
 

Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Marcel
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or