Hi!!!
I am making a school management application using visual studio2008, MS Access database, C#.
There are two tables: "class" with fields c_id , c_name
"section" with fields c_name , sec_id, sec_name.
On the form I have two combobox one for class named "com_Class" and other for section named "com_Section" .I want that when I select any class from "com_Class" then the sections( corresponding to that particular selected class) should display in "com_Section" and not all the sections.
I am using following code :
I am making a school management application using visual studio2008, MS Access database, C#.
There are two tables: "class" with fields c_id , c_name
"section" with fields c_name , sec_id, sec_name.
On the form I have two combobox one for class named "com_Class" and other for section named "com_Section" .I want that when I select any class from "com_Class" then the sections( corresponding to that particular selected class) should display in "com_Section" and not all the sections.
I am using following code :
C# |
I have a class(clsODBC.cs) for database connectivity and in that I have make function comboFill() and the code is as follows:
TypeScript |
Code |
Kindly provide some solution.........

Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 15, 2010, 8:32 PM EST
i have doubt on these two lines