HierarGrid - I need to add the child datagrid

Posted on 2006-04-17
Last Modified: 2008-02-01
Who understands how to implement the Hierargrid by Denis Bauer ?

I downloaded and studied the demos and am reading the "How to article" :

What I need to do is quite simple. However the documentation seems over complicated.

My parent table is Services.  For each service, there are multiple providers. The article uses stored procedures. I have substituted SQL Statements in the code behind. The article says to drop a child datagrid into a template. I have done that. It does not explain how to reference the child datagrid in the parent aspx page. The main grid is working.  

Here is what I have:

<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
      <dbwc:HierarGrid id="grdServices"
      style="Z-INDEX: 101; LEFT: 80px; POSITION: absolute; TOP: 24px"
      Width="432px" AutoGenerateColumns="False"
      DataSource="<%# DstServices1 %>"
      <SELECTEDITEMSTYLE BackColor="#008A8C" ForeColor="White" Font-Bold="True">
      <AlternatingItemStyle BackColor="#FFFFC0"></AlternatingItemStyle>
      <ITEMSTYLE BackColor="#EEEEEE" ForeColor="Black"></ITEMSTYLE>
      <FooterStyle Font-Bold="True" ForeColor="White"  BackColor="#B50055"></FooterStyle>
      <ItemStyle VerticalAlign="Top" BackColor="#FFF7E7"></ItemStyle>
      <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#B50055"></HeaderStyle>
               <asp:BoundColumn DataField="ServiceID" HeaderText="Service ID"></asp:BoundColumn>
               <asp:BoundColumn DataField="ServiceName" SortExpression="ServiceName"
                                   HeaderText="Service Name">
Where do I insert the Template Collumn ? The Plus and Minus images are not displaying. I see no code that detects firing of the Plus and Minus buttons.


Question by:Dovberman
    LVL 10

    Accepted Solution

    hi ,

    See this link ,
    In this sample they have give functionality that you want


    Author Comment

    The example is impressive. However the src files needed to complete the solution are missing.

    <%@ Register TagPrefix="Societopia" tagName="ChildGrid" src="DataGrid_Hierarchy_Child.ascx" %>
    <%@ Page Language="C#" AutoEventWireup="false" src="DataGrid_Hierarchy.aspx.cs" Inherits="Societopia.Samples.DataGrid_Hierarchy"%>
    <%@ Register TagPrefix="Societopia" tagName="PageHeader" src="PageHeader.ascx" %>
    <%@ Import namespace="System.Data" %>

    Thanks anyway.


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now