Hi All,
Getting a problem when trying to bind data to a textbox in a smart
device application using visual studio 2003, CF 1.0 and win ce 4.2.
Below is the code:
When trying to bind I get an argument exception error with nullCode:strSQL = "SELECT * FROM Visit WHERE SiteID= '" & strSiteName & "' AND D_Date = '" & strDate & "' AND UserID = '" & strUserName & "'" cmd.CommandText = strSQL da = New SqlCeDataAdapter(cmd) ds = New DataSet da.Fill(ds, "SiteVisit") txtSourceID.DataBindings.Add("Text", ds.Tables("SiteVisit"), "SourceID")
reference? This same code works fine in my test windows application,
so what could the problem be? I even know that the data is there as
databinding to a datagrid works fine, it's just textboxes that seem to
be a problem. Any ideas would be appreciated!
Cheers
Dan


Reply With Quote