|
-
Aug 2nd, 2005, 07:52 AM
#1
Thread Starter
Addicted Member
dataset
how do i make a dataset so i can fill my adapter?
-
Aug 2nd, 2005, 05:09 PM
#2
Re: dataset
Here's an example of one I created. It does seem a bit backwards, doesn't it?
VB Code:
Dim cmd As System.Data.SqlServerCe.SqlCeCommand
Dim da As System.Data.SqlServerCe.SqlCeDataAdapter
Dim ds As New System.Data.DataSet
cmd = dbM.GetCommand
cmd.CommandText = "SELECT * FROM EffortTable WHERE SessionDate >= '" & dt.ToShortDateString & "'"
da = New System.Data.SqlServerCe.SqlCeDataAdapter(cmd)
da.Fill(ds)
My usual boring signature: Nothing
 
-
Aug 3rd, 2005, 10:36 AM
#3
Thread Starter
Addicted Member
Re: dataset
i think i did that before, but i could not see any results
is my databinding correct?
lblWeek.DataBindings.Add("text", ds, "week")
where week a fieldname? i dont know about text.
-
Aug 3rd, 2005, 02:08 PM
#4
Thread Starter
Addicted Member
Re: dataset
still having binding problems. help.
-
Aug 3rd, 2005, 02:21 PM
#5
Re: dataset
I'm afraid I know just about 0 about data binding. The code I have used to fill datasets is what I posted, and that's the only way I have used them (I tend not to use them at all if I can avoid them, but as you have found, sometimes they are the right tool).
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|