Databound UserControl

L

Lespaul36

I want to make a databound user control, but I was wondering if there are
some classes that I can implement in order to populate the control, or is
the only way do loop through the database?
 
C

Cor Ligthert

Lespaul,

I assume you ask this for windowforms and not for webforms

The datagrid, the combobox, the listbox, the textbox, the label, the
checkbox, the datetimepicker and some more are all databound (probably I
forget a lot).

The first 3 by a datasource, the others (single value ones) by databinding.
The datasoure is mostly and the easiest a datatable, however there can be
more used (Ilist and Icollection implementing arrays and collections)..

There is real to much to write that in a newsgroup message.Have a look in
the documentation for that or on MSDN.

I hope this helps to get a start?

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

Top