How do I have unbounded Webgrid with 2 childtables in a root table?

3 replies. Last post: March 10, 2011 8:54 AM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Larry TanMember

Hi,

I am looking at the UnboundHierarchical webgrid and wonder if it is possible to have another child table at the same level as Books, such as

 

<RootTable TableHeaderVisible="True" Caption="Authors"> <ChildTables> <ISWebGrid:WebGridTable TableHeaderVisible="True" Caption="Books"> <Columns> <ISWebGrid:WebGridColumn Caption="Title ID" Name="TitleID"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Book Title" Name="Title"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Type" Name="Type"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Price" Name="Price" DataFormatString="c" DataType="System.Double"> </ISWebGrid:WebGridColumn> </Columns> </ISWebGrid:WebGridTable> <ISWebGrid:WebGridTable TableHeaderVisible="True" Caption="Jounal"> <Columns> <ISWebGrid:WebGridColumn Caption="Journal ID" Name="JournalID"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Journal Title" Name="Title"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Caption="Category" Name="Category"> </ISWebGrid:WebGridColumn> </Columns> </ISWebGrid:WebGridTable> </ChildTables> <Columns> <ISWebGrid:WebGridColumn Width="100px" Caption="Author ID" Name="AuthorID"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Width="100px" Caption="Last Name" Name="LastName"> </ISWebGrid:WebGridColumn> <ISWebGrid:WebGridColumn Width="100px" Caption="First Name" Name="FirstName"> </ISWebGrid:WebGridColumn> </Columns> </RootTable>

 

However I do not know how to bound my objects to the second child table (Journal).

rootRows[0].Children does not seem to allow access to the second child table. Any advice will be appreciated.

 

Thanks,

Larry

All times are GMT -5. The time now is 10:01 AM.
Previous Next