Question

I am trying to test the refresh method of Windows Forms. We are using both windows forms and wpf in the project. Its a wpf window, popped out of windows form. I am calling the Initialize component of wpf again on windows forms refresh.

I need help on the sql side. Updating the data in database table periodically. How to change the data of the SQL table which is bound to the grid? Database used is SQL Server CE.

Était-ce utile?

La solution

In WinForms the forms do not have an inherent way of storing data to a DB. You must add a BindingSource component to the form.

The Refresh method only updates the form visually but does not save any data. According to Microsoft:

Forces the control to invalidate its client area and immediately redraw itself and any child controls.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top