Hi,
I added a virtual method to WinPart like:
Public Virtual void UpdateDataSource()
{
// Override this method to update the datasource of a read-only listing-winpart
}
This metod is called in ShowWinPart(Winpart part) in my MainForm before the part.BringToFront() method is called.
In my listing-winparts I override this method with for example the following code:
public override void UpdateDataSource(){
_list = CustomerList.GetList(); this.CustomerListBindingSource.DataSource = _list;ApplyAuthorizationRules
();}
Is this the normal way to update a datagrid, or do I get in trouble in the future. Is there a better way to update my WinPart.
Thank's
Copyright (c) Marimer LLC