data sources and data binding

S

Smola

Hi all,

I have a third party system whose database I can access only through
it's specific API. I need to create a binding mechanism for a windows
forms application.

I'm not interested in writing ODBC drivers and I want to focus on
writing my own data binding objects.

What is the best approach for doing this?

After some reading I conluded that in my access-layer classes I should
implement several interfaces like IList, IBindingList etc.. This way I
can use these classes as a data source for my contols.

Am I on the right track? :)
 
M

Mr. Arnold

Smola said:
Hi all,

I have a third party system whose database I can access only through
it's specific API. I need to create a binding mechanism for a windows
forms application.

I'm not interested in writing ODBC drivers and I want to focus on
writing my own data binding objects.

What is the best approach for doing this?

After some reading I conluded that in my access-layer classes I should
implement several interfaces like IList, IBindingList etc.. This way I
can use these classes as a data source for my contols.

Am I on the right track? :)

Yes, you are correct. But you can load the class, which is an object, into
a System.Collection ArrayList, System.Collection for a strong typed
Collection, or a System.Collection.Generic List<T>, a strong typed
collection that implements IList automatically so each type of collection
can be bound to a control with an object or objects in them.




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4109 (20090527) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
M

Mr. Arnold

Smola said:
Hi all,

I have a third party system whose database I can access only through
it's specific API. I need to create a binding mechanism for a windows
forms application.

I'm not interested in writing ODBC drivers and I want to focus on
writing my own data binding objects.

What is the best approach for doing this?

After some reading I conluded that in my access-layer classes I should
implement several interfaces like IList, IBindingList etc.. This way I
can use these classes as a data source for my contols.

Am I on the right track? :)

Yes, you are correct. But you can load the class, which is an object, into
a System.Collection ArrayList, System.Collection for a strong typed
Collection, or a System.Collection.Generic List<T>, a strong typed
collection that implements IList automatically so each type of collection
can be bound to a control with an object or objects in them.




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4109 (20090527) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
S

Smola

Yes, you are correct. But you can load the class, which is an object, into
a System.Collection ArrayList, System.Collection for a strong typed
Collection, or a System.Collection.Generic List<T>, a strong typed
collection that implements IList automatically so each type of collection
can be bound to a control with an object or objects in them.

I see. Thanks.
 
S

Smola

Yes, you are correct. But you can load the class, which is an object, into
a System.Collection ArrayList, System.Collection for a strong typed
Collection, or a System.Collection.Generic List<T>, a strong typed
collection that implements IList automatically so each type of collection
can be bound to a control with an object or objects in them.

I see. Thanks.
 

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