Home All Groups Group Topic Archive Search About
Author
26 Jan 2005 12:51 AM
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

Author
26 Jan 2005 1:02 AM
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

--
Regards,
Alvin Bruney
Show quoteHide quote
"CDX" <cdy@noSpamDiceNoSpamHome.Com> wrote in message
news:gOSdnTbNKtU_dGvcRVn-qg@comcast.com...
> 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