Take this for example:
I fill up the radgrid by binding the grid to a datasource which is a list of Owner items.
Each owner item has a list containing 2 pet items.
How do I show these in the same row in the grid?
eg: column1 show the name of the owner, column 2 shows the name of the first pet ( =list[0].petname) and column 3 shows the name of the second pet ( =list[1].petname). I don't enable viewstate because it needs to get bound each time.
at the moment i have something like the following:
<
telerik:RadPageView ID="rpvOwnerAndPets" runat="server">
<telerik:RadGrid ID="rgOwnerAndPets" runat="server" OnNeedDataSource="rgOwnerAndPets_NeedDataSource"
GridLines="None" BorderWidth="0px" CellPadding="0" ShowHeader="False" OnItemCommand="rgOwnerAndPets_ItemCommand"
AllowMultiRowEdit="True" OnItemCreated="rgOwnerAndPets_ItemCreated">
<MasterTableView Width="100%" AllowMultiColumnSorting="false" EditMode="InPlace">
<ItemTemplate>
<asp:HiddenField ID="hfOwnerName" runat="server" Value='<%# Bind("OwnerName") %>' />
<asp:HiddenField ID="hfPetName1" runat="server" Value='<%# Bind("Pets[0].OwnerName") %>' />
<asp:HiddenField ID="hfPetName1" runat="server" Value='<%# Bind("Pets[1].OwnerName") %>' />
...
Could someone help me out?
Grts!