Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

about creating a embedded child dataGrid in a same datagrid

simonyongsimonyong Posts: 1Member
halo, everyone.
im newbie to asp.net,sori for such stupid question ya..

im now doin a task as below:

tat task is related to view all data from "employee detail" table
i had create a datagrid where called data from database and successfully display in a datagrid..
each employee will hav a own personnel_number and direct_manager_personnel_number which refer to who is his/her direct boss...

eg. boss hav personnel_number =1 and direct_manager_personnel_number is null because he is boss and nobody ll be refer to..
CEO hav personnel_number= 2 and direct_manager_personnel_number=1 means that CEO has to report to boss
IT manager hav personnel_number = 44 and he will hav many employees (direct_manager_personnel_number = 44) under him..

my task is to view in a embedded child datagrid where who are the persons should refer/direct to him when user click / activate tat row of tat person

i found a website similiar with my task ( http://www.codeproject.com/KB/webforms/HierDataGrid.aspx)
but dunno how to modify it..

vy thanks to ppl who giv me a hand...
thanks..........

Comments

  • bradwangbradwang Posts: 197Member
    : halo, everyone.
    : im newbie to asp.net,sori for such stupid question ya..
    :
    : im now doin a task as below:
    :
    : tat task is related to view all data from "employee detail" table
    : i had create a datagrid where called data from database and
    : successfully display in a datagrid..
    : each employee will hav a own personnel_number and
    : direct_manager_personnel_number which refer to who is his/her direct
    : boss...
    :
    : eg. boss hav personnel_number =1 and direct_manager_personnel_number
    : is null because he is boss and nobody ll be refer to..
    : CEO hav personnel_number= 2 and direct_manager_personnel_number=1
    : means that CEO has to report to boss
    : IT manager hav personnel_number = 44 and he will hav many employees
    : (direct_manager_personnel_number = 44) under him..
    :
    : my task is to view in a embedded child datagrid where who are the
    : persons should refer/direct to him when user click / activate tat
    : row of tat person
    :
    : i found a website similiar with my task (
    : http://www.codeproject.com/KB/webforms/HierDataGrid.aspx)
    : but dunno how to modify it..
    :
    : vy thanks to ppl who giv me a hand...
    : thanks..........
    :
    :


    Hello, I think you can refer to this article http://www.netomatix.com/GridInGrid.aspx on how to embed your child datagrid inside the parent datagrid and it also shows you how to do child datagrid data binding as well. Hope this helps, and happy coding!

    I'm Brad Wang...
    .NET Freelancer from China
    MSN: brad_wang_cn@hotmail.com
    Skype: brad_wang
Sign In or Register to comment.