matthewking
Programmer
Hi all,
Say I had a CartItem class which represented a single cart item, and a CartItemCollection class which contains (not sure if this is how its done) a arraylist of CartItem objects..
How do I bind this data to a datagrid? create a datagrid in the CartItemCollection and return it? or is there a easier/standard way
MyDataGrid.DataSource = MyItemCollection.ToDataGrid(); for example ?
Thanks,
Matt.
Say I had a CartItem class which represented a single cart item, and a CartItemCollection class which contains (not sure if this is how its done) a arraylist of CartItem objects..
How do I bind this data to a datagrid? create a datagrid in the CartItemCollection and return it? or is there a easier/standard way
MyDataGrid.DataSource = MyItemCollection.ToDataGrid(); for example ?
Thanks,
Matt.