S
Steven Baggs
Hi!,
I have defined a List<T> like this List<Container>
Container class holds my Item object and it's state as a Enum.
Container.Item
Container.State
I would like to bind it to GridView.
gridview1.DataSourde = list;
gridview1.DataBind();
Problem is that I can't get it to show the data. I try:
<asp:BoundField DataField="Item.Name" HeaderText="Name" />
but I'm getting an error saying that Item doesn't exist.
Right now I'm using DataSet but I would like to use my business object's
collection.
Best regards,
Steven
I have defined a List<T> like this List<Container>
Container class holds my Item object and it's state as a Enum.
Container.Item
Container.State
I would like to bind it to GridView.
gridview1.DataSourde = list;
gridview1.DataBind();
Problem is that I can't get it to show the data. I try:
<asp:BoundField DataField="Item.Name" HeaderText="Name" />
but I'm getting an error saying that Item doesn't exist.
Right now I'm using DataSet but I would like to use my business object's
collection.
Best regards,
Steven