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
Post a Comment