When a form is loaded I get the data to a dataset and then I bind it to a BindingSource, which finally is being binded to a Listbox
I have a button refreshed which gets again the new dataset data but the bindingsource continues to have the old records. The code is:
Any suggestion on how to solve this?
Thanks in advance
Elias
VB.NET:
'Bind all the bindings
BindingSourceRestrictedMenus.DataSource = DatasetRestrictedMenus
BindingSourceRestrictedMenus.DataMember = "SecurityRestrictions"
'Bind the listbox to the Restricted Menus
ListBoxControlMenus.DataSource = BindingSourceRestrictedMenus
ListBoxControlMenus.DisplayMember = "FullName"
ListBoxControlMenus.ValueMember = "ID"
I have a button refreshed which gets again the new dataset data but the bindingsource continues to have the old records. The code is:
VB.NET:
DatasetRestrictedMenus = oAdministrationProcess.GetRestrictedMenus
Any suggestion on how to solve this?
Thanks in advance
Elias