DesignTime databinding and Grids

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 22-Dec-2004 14:54:05   

Greetings,

In the NorthWind (Adapter) Example, the (CustomerManager) class, aveOrdersButton_Click sub, Frans wrote the following comment:

            ' unbind the collections first, since the datagrids will get confused by the change events and will interfere with the save process. 
            ' We will update the gui after the action anyway with the new state of the orders collection(s).
            UnbindOrders()

should we follow the same approach when using the new design-time binding feature ? flushed

OMAR

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 22-Dec-2004 15:09:52   

No, you should only do these kind of things if your application bugs. I added that to get rid of the misery databinding and grids gave me because lists were changed and the grids tried to update themselves but this was not what I wanted (I wanted them to update after everything was over, not during the save).

Frans Bouma | Lead developer LLBLGen Pro