Binding to custom data class

B

Bill Youngman

I am relatively new to .net programming and am developing a client/server
app for a client and have a question concerning databinding controls.

My question is can I write a custom class to handle database operations and
still be able to bind controls to the datasets contained in the custom class
much the same way that I can bind a control to a dataset that I have
embedded in the form.

TIA,
Bill Youngman
 
T

Teemu Keiski

Hi,

yes you can. One main important thing with binding is that the class (which
needs to be the data source), should implement collection interfaces, at
least the IEnumerable.
 

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