문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top