Binding to a User Written Control

  • Thread starter Thread starter Bruce A. Julseth
  • Start date Start date
B

Bruce A. Julseth

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
 
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 Ligthert said:
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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top