473,382 Members | 1,657 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Binding to a User Written Control

I have User written control with two TextBoxes, one DateTimePicker, and one
ComboBox. I am currently loading the items manually from a DataSet, using
public properties I have set up.

Can I set up the control so that I can bind the data to them?

Thank you...

Bruce
Nov 21 '05 #1
4 882
Bruce,

That would mean that you implement in your user control completly the
datastructure.

In my idea becomes than the sense of that control more too a one time used
control so looses his reason for creating.

Cor
Nov 21 '05 #2

"Cor Ligthert" <no************@planet.nl> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Bruce,

That would mean that you implement in your user control completly the
datastructure.

In my idea becomes than the sense of that control more too a one time used
control so looses his reason for creating.

Cor


Cor :

Thank you for your response.

- You didn't address my first question. Why did VB.NET generate a "SELECT"
commandafter the INSERT command?

- In order to be able to Bind to the fields in my control, I have to
"Completely implement the datastructure." Okay. I'll have to find out how to
do that.

- This control will be used on several forms in my data collection system.
It is not a "One Time Use" control.

Thanks again..

Bruce

Nov 21 '05 #3
Bruce,

I even did not know that it was done, most of us don't use the designer to
use adonet.

As I wrote in the other message is probably the newsgroup
microsoft.public.dotnet.framework.adonet a good choise for this question. I
am as well more or less active in that and therefore I know that for the
designer part at least William Vaughn and William Ryan are often writting in
that newsgroup. (Both there name is Bill).

So why not try it there as well.

I hope this helps,

Cor
Nov 21 '05 #4
Bruce,

Let say it in another way, it is never a good idea to connect a dataclass to
a UI class.

Why than not create two special classes?

Cor
Nov 21 '05 #5

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

Similar topics

0
by: Ann Morris | last post by:
INTRODUCTION One of the most powerful aspects of .NET and Windows Forms is data binding. Data binding is the process of associating user interface (UI) elements with a data source to generate a...
14
by: Composer | last post by:
I've read many postings about the problem of Access.References.IsBroken and the consensus seems to be that late binding is the cure-all. I have a very complex Access application that needs...
0
by: Simon Barbour | last post by:
Hi all, Tearing my hair out on this one so hopefully somebody can help. I have written a custom control to represent a button on a touchscreen EPoS (electronic point of sale) peice of...
1
by: Dot net work | last post by:
Hello. I have an interesting data binding scenario: I have a repeater control. It repeats a typical custom web user control. I also have a collection object, and each collection element...
6
by: Scott Mueller | last post by:
I have a question about simple binding: (please forgive any syntax errors... I am at home, where I do not have Vb.Net installed, and I rely far too much on Vb's intellisense!) If I have two...
11
by: Rourke Eleven | last post by:
I have looked and searched. What good is the databind property on Radiobuttons? How does one go about actually using it? What is a good resource on this? I understand that I can easily get/set...
5
by: Rami | last post by:
Hey, I Tried to bind a DataGrid to an ArrayList, and had 2 problems: 1. The DataGrid shows the Length property of the items instead of their text - how can I change that? 2. After binding, I add...
3
by: Simon Tamman | last post by:
I've come across an interesting bug. I have workarounds but i'd like to know the root of the problem. I've stripped it down into a short file and hope someone might have an idea about what's going...
1
by: GS | last post by:
I am perplexed . I thought it is easy to fix the binding error on cvtDtFrom. I only used the cvtDtFrom a couple of places but I found out the error occurred before form loading. I tried...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.