DataGrid with manual dataSource

C

CDX

I'd like to use a DataGrid but use a collection of objects as it's
source. Preferablly I'd like to have the column data be retrieved
directly from the row object in the collection (instead of from an array
of data). Is there a way to do this?

If I cannot have the column values retrieved right from the Row objects,
I supposed I could have the row objects create an array of the
appropriate data. If this is the alternative, how should I go about
structuring it?


Thanks,

Chip
 
A

Alvin Bruney [MVP]

one approach is to manually build a dataset adding filling the rows with
whatever you want in there. when you are done, bind the dataset to the grid.
you can find code to manually build a dataset on the web
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top