I am gathering a set of information from users and they are : name,rollnum,fathername,dept,branch,Sem and gender. When user enters this information and click button SubCode, SubTitle has to be fetched based of Dept,Branch and Sem entered by the user from the other table for which I have written a Query and it is working fine.
Defination of table (TblSub)
SubCode |SubTitle |Dept |Branch |Sem
C1 C Programming Computer Science Computer Science 1
J1 Java Programming Computer Science Computer Science 1
J1 C++ Programming Computer Science Computer Science 2
Now my main problem is I want to display (rollnum,Name,Fathername,SubCode,SubTitle) in a gridview.
Output of the gridview has to look like this when user select dept=branch=Computer Science and sem = 1
rollnum |Name |Fathername |SubCode |SubTitle
01 stud1 father1 C1 C Programming
01 stud1 father1 J1 Java Programming
The number of subcode differs to each student based on the dept,branch and sem they select. I tot of using dataset where I will 1st enter rollnum,name,fathername and then add column subcode and subtitle column wise. But as the number of subcode differs for each student I not getting how to achieve this. I will be glad to know if there is any other way other then dataset which is more convenient in using. Please help. Thank you.