Hi I'm developing a smart WM 6.1 app using CF 3.5 and visual studio 2008.
So i have a dropdown list populated via datasource (a table of my sqlite database).
My question is how can i refresh (and fill it with the new data) this dropdown list without closing and re open the form?
My idea is to refresh it after clicking a button on the form.
i try with :
List.Update();
List.Refresh();
List.BeginUpdate();
List.DataSource() = Data;
List.EndUpdate();
Thanks
First, get your data.
If that is successful, continue.
If you want to be fancy, save the currently selected item so you can reselect it after you update your
DropDownListcontrol.Clear the items from your
DropDownListcontrol.Add the info from your data to your
DropDownListcontrol.If you were being fancy, reselect that last item.