Hi,
First of all, apologies for all of the posts at the moment.
I've got a DGV called DataGridView1 which is linked using a SQLTableadapter.
This code is handling the creation of the table and link perfectly. Now I want a better way of dealing with refreshing then just doing a refresh all.
We currently have 60,000 + clients held within one table of a SQL database and have around 30-40 people making constant changes to this table. What I want is a way to refresh the current selected clients information so that when anyone selects a client they are always seeing the most up to date information about them.
Is there anyway to do this? Or would just a large refresh like the above code be ok?
First of all, apologies for all of the posts at the moment.
I've got a DGV called DataGridView1 which is linked using a SQLTableadapter.
VB.NET:
Dim ds As New DataSet
DataGridView1.Columns.Clear()
DataGridView1.DataBindings.Clear()
connetionString = "Data Source=****;Initial Catalog=****;User ID=****;Password=****"
connection = New SqlConnection(connetionString)
sql = sSELECT & sFROM & sWHERE & sORDER
Try
connection.Open()
adapter = New SqlDataAdapter(sql, connection)
ds = New DataSet
adapter.Fill(ds)
connection.Close()
Me.DataGridView1.DataSource = ds.Tables(0)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
This code is handling the creation of the table and link perfectly. Now I want a better way of dealing with refreshing then just doing a refresh all.
We currently have 60,000 + clients held within one table of a SQL database and have around 30-40 people making constant changes to this table. What I want is a way to refresh the current selected clients information so that when anyone selects a client they are always seeing the most up to date information about them.
Is there anyway to do this? Or would just a large refresh like the above code be ok?