hi,
I have a datagrid view i nee to refresh it in every 2 seconds, how do i do it?
TY
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit ChoudharyPosted Oct 9, 2009, 1:48 AM
and Refresh it by sending the ajax request in javascript's
window.setTimeOut('2000');
function.
Roei BarPosted Oct 8, 2009, 2:00 AM
also make sure that when you arrive to the timer like Kirtan showed, you first set the timer.Enabled = false
and 2 the end of the block you reset it to timer.Enabled = true
Kirtan PatelPosted Oct 7, 2009, 9:31 PM
private void timer1_Tick(object sender, EventArgs e)
{
//Code For Filling Data GridView from Database
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 2000;
}