Databound UserControl

  • Thread starter Thread starter Lespaul36
  • Start date Start date
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?
 
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
 
Back
Top