By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,855 Members | 1,838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,855 IT Pros & Developers. It's quick & easy.

How to display embedded datagrid when click

P: 28
hello, anyone..
im newbie to asp.net

my problem is :

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

eg.
CEO hav personnel_number= 2 and direct_manager_personnel_number=1 means that CEO has to report to boss(personnel_number = 1)
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 had create a datagrid to view all parent and last column i had insert a link button so tat when user click on it, embedded child datagrid will be shown

i had saw almost tutorials in internet,my task has a bit different from them.
the different are

1. act my full task is to let user key in first name or last name then program ll view all employees with tat firstname/lastname once user click on tat "Search" button.Hence, my coding to call the data from database not from itemBoundData, is from click command

2. after that, from the datagrid, user can select tat row to be view with its embedded child datagrid.

im getting confuse what shoud i wirte tat coding after viewing parent datagrid and where should i put tat coding.
Jul 21 '08 #1
Share this Question
Share on Google+
2 Replies


Curtis Rutland
Expert 2.5K+
P: 3,256
Welcome to Bytes.

Please do not double post your questions. It makes it difficult to answer and keep track of. Please read the Posting Guidelines.

Also, you need to try something first, This is a forum for coding issues, not a place where we do your homework/assignment for you. If you try something, and have a problem, we will be more than happy to help you work through specific issues, but we won't do your work for you.

MODERATOR
Jul 21 '08 #2

P: 28
Welcome to Bytes.

Please do not double post your questions. It makes it difficult to answer and keep track of. Please read the Posting Guidelines.

Also, you need to try something first, This is a forum for coding issues, not a place where we do your homework/assignment for you. If you try something, and have a problem, we will be more than happy to help you work through specific issues, but we won't do your work for you.

MODERATOR

Sorry about that

and actually i had find out lots of how to do it...
but cant..
im confusing,not me didn't try it
hope can get some direction from senior


Anyway, i had done it in different way, that's using datalist
sorry for inconvenient
sorry for asking stupid question
Aug 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.