G
Gabrielle Shegog via .NET 247
For some reason I cannot populate my datagrid. Here is the code:
Dim cString As String
cString = "Data Source = ACServe.sdf"
Dim cn As System.Data.SqlServerCe.SqlCeConnection
Dim SQL As String
Dim SQLEngine As System.Data.SqlServerCe.SqlCeEngine
If Not System.IO.File.Exists("ACServe.sdf") Then
SQLEngine = New System.Data.SqlServerCe.SqlCeEngine _
("data source=ACServe.sdf")
SQLEngine.CreateDatabase()
End If
cn = New System.Data.SqlServerCe.SqlCeConnection("Data Source=ACServe.sdf")
cn.Open()
ds = New DataSet
Dim adpCallout As SqlCeDataAdapter = New SqlCeDataAdapter("select * from Callout", cn)
Dim tbl As DataTable
tbl = New DataTable("Callout")
adpCallout.Fill(tbl)
dgJobList.DataSource = tbl
Please help!!!
Dim cString As String
cString = "Data Source = ACServe.sdf"
Dim cn As System.Data.SqlServerCe.SqlCeConnection
Dim SQL As String
Dim SQLEngine As System.Data.SqlServerCe.SqlCeEngine
If Not System.IO.File.Exists("ACServe.sdf") Then
SQLEngine = New System.Data.SqlServerCe.SqlCeEngine _
("data source=ACServe.sdf")
SQLEngine.CreateDatabase()
End If
cn = New System.Data.SqlServerCe.SqlCeConnection("Data Source=ACServe.sdf")
cn.Open()
ds = New DataSet
Dim adpCallout As SqlCeDataAdapter = New SqlCeDataAdapter("select * from Callout", cn)
Dim tbl As DataTable
tbl = New DataTable("Callout")
adpCallout.Fill(tbl)
dgJobList.DataSource = tbl
Please help!!!