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

  • Thread starter Thread starter Keld Laursen
  • Start date Start date
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
 
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
 
Back
Top