brucelim80
Active member
- Joined
- Apr 20, 2006
- Messages
- 35
- Programming Experience
- Beginner
Hi
Can anyone expert here help me with this problem?
I have the code below to update the dataset
Dim myConnects4 As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\136.121.2.1\its helpdesk\calltrack\MDB\ecall.mdb;")
myConnects4.Open()
Dim personaljobadapter As OleDbDataAdapter = New OleDbDataAdapter("SELECT * FROM TrackingDB WHERE assignto='" & currentuser & "'", myConnects4)
personaljobadapter.Fill(DataSet1.Searchtrack)
myConnects4.Close()
On the other hand,i have a Bindingsource("Searchdata")which datasource is linked to the dataaset above is mapped to the datagridview as the datasource
When i use the timer to update the bindingsource and refreshing the datagridview for every two sec, it will slow down my application.
How do i write in such a way that my datagridview will be updated within every 2sec and it does not affect my application? How do i use a threading ?
Thank you,
Regards,
Bruce
Can anyone expert here help me with this problem?
I have the code below to update the dataset
Dim myConnects4 As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\136.121.2.1\its helpdesk\calltrack\MDB\ecall.mdb;")
myConnects4.Open()
Dim personaljobadapter As OleDbDataAdapter = New OleDbDataAdapter("SELECT * FROM TrackingDB WHERE assignto='" & currentuser & "'", myConnects4)
personaljobadapter.Fill(DataSet1.Searchtrack)
myConnects4.Close()
On the other hand,i have a Bindingsource("Searchdata")which datasource is linked to the dataaset above is mapped to the datagridview as the datasource
When i use the timer to update the bindingsource and refreshing the datagridview for every two sec, it will slow down my application.
How do i write in such a way that my datagridview will be updated within every 2sec and it does not affect my application? How do i use a threading ?
Thank you,
Regards,
Bruce