How to Refresh Grid Auto........
add this method.
//Set and start the timer
private void SetTimer()
{
DispatcherTimer dispatcherTimer = new DispatcherTimer();
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = new TimeSpan(0, 0, 60);
dispatcherTimer.Start();
}
create this Event where you want
protected void dispatcherTimer_Tick(object sender, EventArgs e)
{
btnSearch_Click(null,null);
}
Tnks
add this method.
//Set and start the timer
private void SetTimer()
{
DispatcherTimer dispatcherTimer = new DispatcherTimer();
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = new TimeSpan(0, 0, 60);
dispatcherTimer.Start();
}
create this Event where you want
protected void dispatcherTimer_Tick(object sender, EventArgs e)
{
btnSearch_Click(null,null);
}
Tnks
No comments:
Post a Comment