GridView not reflecting updates to data objects in code

3 posts, 0 answers
  1. Mark
    Mark avatar
    79 posts
    Member since:
    Apr 2007

    Posted 08 Dec 2009 Link to this post

    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:GridViewDataColumn Header="ETA" DataMemberBinding="{Binding SiteEtaDateTime}" IsReadOnly="True" DataFormatString="{}{0:MM/dd/yy}" ShowDistinctFilters="True"></grid:GridViewDataColumn> 


  2. Stefan Dobrev
    Stefan Dobrev avatar
    790 posts

    Posted 09 Dec 2009 Link to this post

    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.
  3. Mark
    Mark avatar
    79 posts
    Member since:
    Apr 2007

    Posted 10 Dec 2009 Link to this post

    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. 
Back to Top