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 :
|
I have a class(clsODBC.cs) for database connectivity and in that I have make function comboFill() and the code is as follows:
|
|
Kindly provide some solution.........
Amit ChoudharyPosted Feb 16, 2010, 1:32 AM
i have doubt on these two lines