in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

A way to refresh ListView after change in DetailView

Last post 5/14/2007 8:47 AM by Dan (Developer Express). 1 replies.
Page 1 of 1 (2 items)
Sort Posts:
Previous Next
  • 5/11/2007 3:15 AM

    A way to refresh ListView after change in DetailView

    Hi,
    After I change something in DetailView change of it is visible in ListView only after I press Refresh button manually. From what I discovered ListView.CollectionSource.Reload() allows me to refresh the list. I may invoke it while DetailView is disposed of (I do it in my own Controller). However my concern is whether it's good for the perfomance, since only one object is changed and I'm doing refresh for the whole list (which may have impact if number of records is considerable). So basically the question is - What is the best way to refresh ListView if I know which object has been changed and don't need to refresh entire collection.


    --
    Marcin
    Filed under:
  • 5/14/2007 8:47 AM In reply to

    Re: A way to refresh ListView after change in DetailView

    Hello, Please, review the attached project: it works fine. I have tested it on the latest XAF (v7.1.1.3196). It is possible that the cause of the problem is in relations between your objects. Could you reproduce the problem with my application? I have used a very simple object with a single property. Please, feel free to introduce any necessary objects.
    Thanks, Dan
    R&D, .NET Team Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
Page 1 of 1 (2 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED