Click here to Skip to main content
15,894,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have made a Window Service which is saving data from COM Port to a Database. I have made Windows Form with one Datagridview. My question is, how can i automatically update datagridview when there is any new data goes into a database. Thanks
Posted

use timer in your code, and add a flag accordingly. I also did it in my window app
 
Share this answer
 
v2
At timer_Elapsed event you can query database and set datasource of datagridview
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900