Re: Sharing datasources among forms - VS2005

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Yes, an approach like that has occurred to me, and I will pursue it.
It just doesn't seem to fit as naturally as I would like with the way
the IDE does things. Thanks for the reply.


On Feb 26, 9:38 am, "RobinS" <Rob...@xxxxxxxxxxxxxxx> wrote:
If you were really concerned about the performance, you could create a
public class with shared properties that point to datatables that you're
using to bind to comboboxes all over your app, and access that everywhere.

Robin S.
-------------------------"Steve Marshall" <ste...@xxxxxxxxxxxxxx> wrote in message

news:1172290469.442061.64020@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



I have come across the situation several times where a number of forms
in an app use the same datasource, for example to populate a combo
drop-down. I'm sure we've all had this. Using the IDE results in
every form getting its own Dataset, BindingSource and TableAdapter,
plus code in the Open event to fill the table in the dataset. This
strikes me as incredibly inefficient - there is simply no need for
every form to go to the database to read this data in again. What I
want is a way to set up and populate a dataset once, then just refer
to it in all the forms that might need it. Is there a way to do this
that fits in with the IDE? If there is it isn't obvious to me.- Hide quoted text -

- Show quoted text -


.



Relevant Pages

  • Re: Sharing datasources among forms - VS2005
    ... using to bind to comboboxes all over your app, ... want is a way to set up and populate a dataset once, ... that fits in with the IDE? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: IDE controller for Sun Ultra 80??
    ... >>Is it possible to fit an IDE controller card into an Ultra 80 so an IDE ... >>based DVD writer could be attached? ... Should fit and maybe work if you have a regular 50 pin ribbon SCSI cable. ...
    (comp.sys.sun.hardware)
  • Re: What IDE are you using?
    ... Listen, while function completion, syntax highlighting and the like are cool, I spend far more of my time doing basic editing than just function calls or function call headers. ... While an IDE might gain me some convenience in the areas of function call completion it's not where I spend the majority of my time. ... Additionally, as a scripter and system admin, I deal in a plethora of languages, including, but not limited to, PHP, Perl, Bash, Awk, HTML, sed, Visual Basic, etc. XEmacs handles all of them with ease and similarity, whereas an IDE geared toward PHP probably wouldn't handle Bash very easily. ... For instance - I have to fit the equivalent of a semester into one week. ...
    (comp.lang.php)
  • Re: Database access sucks!
    ... stick with what you know well if time constraints ... I'm struggling to understand what kind of project C# doesn't fit? ... And a semi-clunky IDE, although, there some things in the IDE that are ... Also, in C#, why do you need to select the class name refactoring ...
    (microsoft.public.dotnet.general)
  • Re: What IDE are you using?
    ... brick wall, an old brick wall. ... Your statement is that any programmer who doesn't use an IDE such as ZEND isn't as productive as one who does. ... Let's see - you try to fit everyone into one mold. ...
    (comp.lang.php)