How to bind a DataGrid to a datasource that is not a DataTable?

K

Keld Laursen

I seem to remember that this possibility has been mentioned way back.
But how to do it?

I have tried to look for examples on www.opennetcf.org and www.gotdotnet.com

(I am trying to find out how to port a program from eVB to C#, and am
testing the necessary controls)

Any pointers/hints/links?

/Keld Laursen
 
P

Peter Foot [MVP]

the data source must implement IList interface (System.Collections
namespace) (Or IListSource for a control which provides multiple internal
lists). This defines the standard methods and properties your collection
must expose to be used by controls such as the DataGrid.

I can't think of any immediate examples but if you search for IList (or
check out the VS help) there should be some examples out there...


Peter

--
Peter Foot
Windows Embedded MVP

In The Hand
http://www.inthehand.com
 

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