T
Thomas P.
Hi,
I use the following VB.NET 2003 code to read some data from a *.sdf
database and write it into a DataGrid.
cn = New SqlCeConnection("Data Source = \My
Documents\Test.sdf;Password=")
cn.Open()
Dim cmd As SqlCeCommand = cn.CreateCommand
cmd.CommandText = "Select number From Test"
Dim da As New SqlCeDataAdapter(cmd)
Dim ds As New DataSet
da.Fill(ds)
DataGrid1.Enabled = False
DataGrid1.DataSource = ds.Tables(0)
This works fine but now I like to save the sorted output data in some
variables or an array. How can I do this? The DataGrid is not needed
any longer. I used it only for a test-output.
It wold be great if someone can give some detailed code for my
problem. Please try to explain it simple because I am a newbee.
Thanks.
Thomas Peterson
I use the following VB.NET 2003 code to read some data from a *.sdf
database and write it into a DataGrid.
cn = New SqlCeConnection("Data Source = \My
Documents\Test.sdf;Password=")
cn.Open()
Dim cmd As SqlCeCommand = cn.CreateCommand
cmd.CommandText = "Select number From Test"
Dim da As New SqlCeDataAdapter(cmd)
Dim ds As New DataSet
da.Fill(ds)
DataGrid1.Enabled = False
DataGrid1.DataSource = ds.Tables(0)
This works fine but now I like to save the sorted output data in some
variables or an array. How can I do this? The DataGrid is not needed
any longer. I used it only for a test-output.
It wold be great if someone can give some detailed code for my
problem. Please try to explain it simple because I am a newbee.
Thanks.
Thomas Peterson