Hello all,
I call this function once during the start up of the application, to populate the datatable with the values from the database. and then play with the datatable later in the application.
What I would like to happen is to Modify the the records in the datatable, like adding rows,updating and deleting. because if i will refill the or reload the records from the database after each add/update/delete rows this will affects the performance dramatically.
any suggestion how to refresh/modify the values in the datatable without reloading it?.
Thank you.
I call this function once during the start up of the application, to populate the datatable with the values from the database. and then play with the datatable later in the application.
Code:
Public Sub PopulateGlobal_Datatable_Tire()
Dim sqlString = "SELECT BusNumber,TireID,Model,Mounting" & _
",RFID,Mileage,tire.[Tire Size],TireCost,[Recommended Inflation],[Installation Date]" & _
",Tread_Depth_Ist,[Removal Date],[Tread_Depth_Rem],[Vehicle Mileage_Ins],Location,[Installed],InitialBrandingDate,OperatorName,[Disposal Date],TireType.psi FROM Tire,TireType WHERE Tire.model=TireType.TireBrandType"
Using cmdPopulateTire As SqlCeCommand = New SqlCeCommand(sqlString, _DBConn_LOCAL)
Using rs As SqlCeDataReader = cmdPopulateTire.ExecuteReader
Tire_DatatableGlobal = New DataTable("Tire")
Tire_DatatableGlobal.Load(rs)
rs.Close()
End Using
End Using
End Subany suggestion how to refresh/modify the values in the datatable without reloading it?.
Thank you.