Umar Abbas
Umar Abbas

Reputation: 4161

Adding rows in DataGridView by time

I am working on a Windows Forms application. There is a DataGridView on a form. I set a timer which checks the records in a table after an interval, and if a time condition met, it adds rows to the DataGridView.

Is there another method to accomplish this (without using a timer and without looping through the database?

Upvotes: 0

Views: 77

Answers (1)

Robbie Boucher
Robbie Boucher

Reputation: 56

There's not really a way to do this. Polling the table is pretty much you're only path here. You'd have to find some way to hook into the DB server's event model. May or may not be possible depending on which DB server you are using.

Upvotes: 1

Related Questions