c# - dynamic checkboxes -


i new c#.

i have 55 checkboxes on form choose vaious different options, labels , labels dependant on 'frmschemas.schema' previous form.

is there way can values database populate on comboxes dynamically dont have code read 189 times?

i sorry if didnt ask correct question. using code below stuck after dr.read(); can me...

string oradb = "data source="; oradb = oradb + login.db + ";"; oradb = oradb + "user id=" + login.user; oradb = oradb + ";password=" + login.pass + ";"; oracleconnection conn = new oracleconnection(oradb); conn.open(); sql = "select gcos_schema, program_field, dbfield,program_label gendba.suptallyactivitiesconfig active ='y' , gcos_schema ='" + frmschemas.schema + "'"; oraclecommand cmd = new oraclecommand(sql, conn); cmd.commandtype = commandtype.text; oracledatareader dr = cmd.executereader(); dr.read(); 

change dr.read();

while(dr.read()) {  // loop through table   } 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -