|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
DataGrid with manual dataSourceI'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 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 -- Show quoteHide quoteRegards, Alvin Bruney "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 |
|||||||||||||||||||||||