Re: SQLce 3.5 databound to C# 2008 control

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ginny,

thanks for the quick reply.

Most of the demos I've seen do use a single DataSet rather than a separate
one for each table, although you could do it either way. I imagine there is
Grand so. I was worried that referencing the full dataset on each form even
though I may only need to retrieve a single field might have been overkill.
I'll have to read up more on how they access and store the data while in use.

some overhead to having multiple DataSets. You do need need to call the
TableAdapter.Fill method for each table, and the form Load event handler is
usually where people do that. The code generated by the Data Source tool in
VS 2008 already wired up the connection between specific table adapters and
GUI controls for you, but if you didn't use those tools, you'd need to
establish the data binding programmaticly.
I went back and dragged a field (set as a combobox) from the DataSource list
onto a form. When I previewed the data again the table was correctly returned
but when I ran the form the control was empty. I tried this with and without
the databound options set on the control. It would save heaps of time if I
could get a few forms working this way.

If you're interested in experimenting, you might enjoy trying Sync Services
for ADO.NET if this is a desktop app. (If it's a device app, that isn't an
That looks really interesting, thanks for the link. It would have saved bags
of code a few years ago :)

Stephen
.



Relevant Pages

  • Re: VB.NET desktop equivalent to asp.net stylesheets
    ... stylesheets in vb.net desktop applications? ... way to change control propertiesfor all ... in a desktop app? ... vb.net 1.1 app in a centralized location without the use of third ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Can a Web Forms Control be Used in a Desktop App?
    ... desktop app. ... Of course the web browser control can be used to embed web pages in a ... It's a little bit easier to do things the other way around and use a windows ... Are there any special needs on the desktop for running Web Forms e.g. is ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Web Browser control in ASP.NET page.
    ... I am trying to use a web browser control on an ASP.NET page to print ... the DocumentCompleted event does not fire. ... If I do the same thing in a desktop app rom the main thread, ... If I try to do the printing from a separate thread in the desktop app, ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)