Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Binding Data to Controls - RunTime Vrs DesignTime

Status
Not open for further replies.

aviles1973

Programmer
May 19, 2002
25
US
I am usig VB.net with a SQLServer2005 database. I create my database directly in VB.net and I have a question and would like some advice from others.

When I bind my labels, textboxes, etc. to DataFields in VB.net I really don't like the behind the scenes work that VB.net creates. I feel like I sort of loss control of what is going on behind the scenes.

My Question:

Does everyone bind the datafields in the database? Or do most people just assign the labels, textboxes, etc. programaticly at runtime when needed such as navigating from record to record?

I find it more controllable and stable to just create a SubFunction Class to assign the table data to these objects.

Is there any speed or other advantages when binding at design time?

Another thing is that when I do bind at design time VB.net creates DataSets and I prefer to use DataTables. So therefore I have unwanted datasets and then I create my DataTables. And when I make changes to the Database-> such as creating new fields the DataBindingObject is not refreshed.

I pretty much enjoy and like doing everything at runtime including my connection to the Database.

I just wanted to know how most other VB.net programmers accomlish this. Runtime or Designtime



 
I do runtime, always. I just don't like not having complete control over all aspects of my appliations.



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day! Ye has a choice: talk like a pira
 
Thanx TipGiver for the nice link...It's full of information.

Sharing the best from my side...

--Prashant--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top