update datagridview on parent form

Posts   
 
    
Posts: 18
Joined: 26-Jun-2006
# Posted on: 14-Sep-2006 19:38:42   

I have a parent form with a datagridview that display all employees under a division

each time a new employee is added using a child form, datagridview is not updated.

is there way to reload data to datagridview before child form is closed?

please could somebody help me?

by the way I am coding with C#

thanks,

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 15-Sep-2006 03:15:26   

In the manual under the section Using entityviews with entity collections - View behavior on collection changes this behavior may be explained.

If a new entity is added to the collection through code, it is not added to the view in NoAction mode or in ReapplySorter mode, because no filter is re-applyed. If it's added through databinding, it actually is added to the view, as it is added through the EntityView2, because an EntityCollection is bound to a bound control via an EntityView2, either an EntityView2 object you created and bound directly or through the EntityView2 object returned by the EntityCollection's DefaultView property.

If this doesn't help then you may try posting some of the code used to bind the grid and update the collection with the entity from the form.