Hello,
First question:
I am using your grid in smartrefresh mode. Unfortionally i have to add records thru the dataset not thru the grid. How can I update only the inserted record so that I can see it and not the whole grid. ( A lot of records, so it is slow ).
Second question:
Is it possible to refresh only one record in the grid ?
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi!
Unfortunately, your task cannot be implemented directly. Please review our knowledge base article "How to add or delete records in Smart Refresh mode" at http://www.devexpress.com/kbA291. From this article you can see that dataset updating via its methods does not affect the datacontroller when it is in SmartRefresh mode. However, you can try one possible solution. After you have added new data using dataset methods, you can use, for instance, the Lookup method to obtain the field values (it should not cause scrolling against the Locate method). Then you can add a record in the datacontroller using the methods from the mentioned article, and this will allow you to show new data within a Grid without its reloading. Finally, when the datacontroller reloads its data, it will obtain the same data from the dataset and you won't see the differencies. I hope this will be of some help.
Thanks,
Nicolas.
This is what I am looking for. But do you have some real code
I am nog getting exactly how to do this, so some examples whit real code would be appreciated.
I am not adding a new record to the dataset ???
Thanks in advance.
Hi Gert!
Please try to run the attached sample project. You can see that when you simply edit one record and post it, the OnAfterScroll event does not fire as it does for every record when the datacontroller is reloaded in default mode. The DisableControls/EnableControls method can cause the datacontroller to be reloaded when it is in SmartRefresh mode as well. If this does not help you, I suggest that you attach your sample project which replicates the problem. We will try to find a solution for you.
Thanks,
Nicolas.