473,807 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Bound Controls

In VB6 it seemed as though bound controls (textboxes, etc) were kind of the newbie way to do
things, but were generally not good coding practice. Is this something that is different with
..NET? With the new data access methods is this the general way to display data? It seems easier,
but I guess i have some residual VB6 feelings about using bound controls.

Thanks

--
-Rick

_______________ _______________ __

Hardware, n.: Part of a computer, that when played with long enough, will eventually break.
Software, n.: Part of a computer, that when played with long enough, will eventually work.


Nov 20 '05 #1
4 1221
I cant honestly believe noone has an opinion on this one way or the other?
"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > wrote in message
news:Ov******** ******@TK2MSFTN GP10.phx.gbl...
In VB6 it seemed as though bound controls (textboxes, etc) were kind of the newbie way to do
things, but were generally not good coding practice. Is this something that is different with
.NET? With the new data access methods is this the general way to display data? It seems easier, but I guess i have some residual VB6 feelings about using bound controls.

Thanks

--
-Rick

_______________ _______________ __

Hardware, n.: Part of a computer, that when played with long enough, will eventually break.
Software, n.: Part of a computer, that when played with long enough, will eventually work.

Nov 20 '05 #2
"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > schrieb

"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > wrote in message
news:Ov******** ******@TK2MSFTN GP10.phx.gbl...
In VB6 it seemed as though bound controls (textboxes, etc) were
kind of the newbie way to do things, but were generally not good
coding practice. Is this something that is different with .NET?
With the new data access methods is this the general way to display
data? It seems

easier,
but I guess i have some residual VB6 feelings about using bound
controls.


I cant honestly believe noone has an opinion on this one way or the
other?


I read your post and wanted to answer, but due to a lack of experience in
data bound controls in VB.NET - for the same reason you mentioned - I didn't
answer. You see, this is also an answer. :-) (which means that databinding
is still something "behind the scenes" that I still don't trust)
--
Armin

Nov 20 '05 #3
"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > wrote...
I cant honestly believe noone has an opinion on this one way or the other?


Rick: I'll suggest that "binding" if you mean tying directly to the
persistent storage (a table in the database) is still a poor alternative.
If you mean binding a control to an object with business rules and control
logic then I think it is probably a good thing.

Like so many "rules" that are discussed it isn't the use but rather the
abuse that causes the problems.

Nov 20 '05 #4
I agree Armin.......I always write the data I need the control to have to an
array and have the array and the control communicate.

"Armin Zingler" <az*******@free net.de> wrote in message
news:O6******** ********@TK2MSF TNGP09.phx.gbl. ..
"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > schrieb

"Rick Mogstad" <ri**@NOSPAM.co mputetosuit.com > wrote in message
news:Ov******** ******@TK2MSFTN GP10.phx.gbl...
In VB6 it seemed as though bound controls (textboxes, etc) were
kind of the newbie way to do things, but were generally not good
coding practice. Is this something that is different with .NET?
With the new data access methods is this the general way to display
data? It seems easier,
but I guess i have some residual VB6 feelings about using bound
controls.


I cant honestly believe noone has an opinion on this one way or the
other?


I read your post and wanted to answer, but due to a lack of experience in
data bound controls in VB.NET - for the same reason you mentioned - I

didn't answer. You see, this is also an answer. :-) (which means that databinding is still something "behind the scenes" that I still don't trust)
--
Armin

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2411
by: Hal Davison | last post by:
I have read that most people do not like bound controls? What is the reasoning for this point of view? -- Hal Davison Davison Consulting
4
3579
by: Aaron Ackerman | last post by:
I am using typed datasets in an N-Tier Windows app using VB.NET. I know this posting cannot be fully explained in a single post that is why I am asking for someone to point me to a real world tutorial (in vb.net) that can show me how to use a bound Datagrid to it's fullest potential. I need to utilize the bound Datagrid in two modes. One were a bound Datagrid can be in edited directly utilizing bound combos and textbox right on the grid,...
19
4117
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
3
5012
by: MLH | last post by:
I have a form, bound to a query. Its RecordSource property is a query named frmEnterLienAmounts. The form has a few bound controls and some unbound controls. The unbound controls are calculated fields whose DefaultValue property is set to something like DLookUp("","tblVehicleJobs","=Forms!frmEnterLienAmounts!VehicleJobID") The form (frmEnterLienAmounts) has, as one of its bound fields . As I scroll through the records, one-
4
1765
by: kaborka | last post by:
I have a WinForm with controls bound to a typed recordset that was generated by the Dataset Designer. There are several ComboBox controls with their DataSource bound to different lookup tables. Everything is working fine, except when I need to handle a null default value in the data record coming from the database. I want the combo whose SelectedValue is bound to that field to display the "default" entry in the combo in this case. I...
2
2072
by: Alfredo Barrientos | last post by:
Hi, I have been reading information about asp.net webcontrols, and i have found a term "List bound controls". What are "List Bound Controls"?? Which are the differences between these controls and the others?? how many webcontrols are list bound controls?? any url in microsoft.com talking about lista bound controls??
7
4231
by: Andrew McKendrick | last post by:
Hi, I've noticed a bug in VB.NET (latest .NET Framework)... - I have a TabControl on a form with several tabs. - Each tab contains text boxes that are bound to fields in a data source (DataBindings). - When I display a record and then try to access the .Text property of one of the text boxes on any tab except the current tab, the result is an Empty string.
4
4623
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box bound to a table as a lookup, drawing values from another table to populate the available selections. This all worked fine in VB6. I have distilled the problem down to a simple form drawing data from the Northwind database for a representative...
0
1472
by: HP | last post by:
Hi there I have a datalist control with some bound controls in its Item Template and a gridview bound to one of those fields (residing also in Item Template). I've found out that when I click Edit on the gridview (same happens when editing other gridview which is outside the datalist) all datalist bound fields (except the gridview) disappear, and they don't appear after submitting GV changes - they do only after changing value of some
0
2516
by: Mike | last post by:
So here's the situation (.NET 2.0 btw): I have a form, and on this form is a textbox among many other databound controls. The textbox is bound to a field in a data table via the Text property. In this table there are multiple columns that cannot be NULL, which, are bound to other controls (but they're not really important at this time). I create a new row via the currency manager like so: _currencyManager.AddNew() _currentRow =...
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10624
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7650
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.