Nasted Gridview RRS feed

  • Question

  • User66371569 posted

    i have column in database called ' Manager ' this coulmn contain manager or supervisor number for employee

    what i want make gridview when manager open page see people under him and also see people under supervisor i want to make

    foexsample supervisor under manager and 2 emplyee under that supervisor i want to show next supervisor name plus once click show those 2 emplyee

    same tree

    How can i make that
    Thursday, October 11, 2018 4:29 AM

All replies

  • User61956409 posted

    Hi thepast,

    You can put the GridView in the ItemTemplate of TemplateField of parent GridView, and on the RowDataBound event of the parent GridView, you can find the child GridView from current data row and dynamically populate it with data source.

    This article explained with an example, how to build Nested GridViews with Expand and Collapse feature, please refer to it.

    With Regards,

    Fei Han

    Thursday, October 11, 2018 5:23 AM