In a few posts on this forum, it states that if the bound objects in a RadGridView implement the INotifyPropertyChanged interface, then the grid is supposed to refresh the cell values that are bound to those properties when the values change. However, this is not working for me. I have a RadGridView that is bound to objects that implement this interface, and when the properties are changed the grid does not refresh. The value do refresh however if I do something like change filter values. upon changing the filter values in a column, I see my updated values.
Here is the code for my objects and for the grid:
private
string
_name;
public
string
Name
{
get
{
return
_name;
}
set
{
if
(_name != value)
{
_name = value;
OnPropertyChanged(
"Name"
);
}
}
}
<
telerikGridView:RadGridView.Columns
>
<
telerikGridView:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding Name}"
HeaderTextAlignment
=
"Center"
IsReadOnly
=
"True"
/>
<
telerikGridView:GridViewDataColumn
Header
=
"Size"
DataMemberBinding
=
"{Binding Size}"
</telerikGridView:RadGridView.Columns>
What am I missing?
Thanks