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

GridView not reflecting updates to data objects in code

2 Answers 54 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Mark asked on 08 Dec 2009, 10:26 PM
I have a GridView that is displaying an Edit form below the grid and I'm binding to an ObservableCollection of a custom object type called  JobSite that implements INotifyPropertyChanged and is firing that property when the SiteEtaDataTime property is set.  When I update the property in code, the grid does not reflect the change.  (I have debugged and verified that the PropertyChanged event is being called and the string property name is correct). 

This used to work before I upgraded the silverlight controls to the 11-3 release.  I did have to make a code change when I upgraded to use DataMemberBinding instead of the DataMemberPath.  Am I missing something?

-- Sample Grid - With only the column in question

 

 

<grid:RadGridView x:Name="grdSites" Grid.Row="1" AutoGenerateColumns="False" MultipleSelect="False" ColumnsWidthMode="Auto" FrozenColumnCount="1" > 
   <grid:RadGridView.Columns>                 
      <grid:GridViewDataColumn Header="ETA" DataMemberBinding="{Binding SiteEtaDateTime}" IsReadOnly="True" DataFormatString="{}{0:MM/dd/yy}" ShowDistinctFilters="True"></grid:GridViewDataColumn> 
   </grid:RadGridView.Columns> 
</grid:RadGridView> 

 

2 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 09 Dec 2009, 10:39 AM
Hi Mark,

I have tried to replicate your problem locally but everything works as expected. Can you please send us a small sample project that illustrates your specific problem?

As a side note we are going to release a service pack today that has numerous fixes. You can also try to upgrade your binaries and verify the state of your issue against the service pack release.

Sincerely yours,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Mark
Top achievements
Rank 2
answered on 10 Dec 2009, 04:07 PM
Ok, I figured it out.  The sender on the PropertyChangedEventHandler wasn't the object that it was binding to.  Apparently this worked with the previously build of the GridView, but not in the latest. 
Tags
GridView
Asked by
Mark
Top achievements
Rank 2
Answers by
Stefan Dobrev
Telerik team
Mark
Top achievements
Rank 2
Share this question
or