C# Oracle Displaying data set in a data grid -


i trying query oracle display inside data grid view in visual studio, when run program horizontal lines inside data grid view, i'm not sure going wrong?

        //declarations         //declare sql string         string strsql, constring;         string datestart = startdate.tostring(dateformat), dateend = enddate.tostring(dateformat);          //sql string         strsql = "select to_char(v.caseid) caseid, v.messageset, v.localmessagetime, v.text";         strsql = strsql + " opr.v_mktvalidationmessage v, opr.mktcase c";         strsql = strsql + " v.localmessagetime >= to_date('" + datestart + "','mm/dd/yyyy hh24')";         strsql = strsql + " , v.localmessagetime < to_date('" + dateend + "','mm/dd/yyyy hh24')";         strsql = strsql + " , v.caseid not null";         strsql = strsql + " , v.caseid = c.caseid";         strsql = strsql + " , messageset = 'exporter'";         strsql = strsql + " , c.studymodeid in (32)";         strsql = strsql + " , (text 'scp%begin exporting%' or text 'scp%export           completed%' or text 'ans%begin exporting%' or text 'ans%export completed%' or text 'scd%begin exporting%' or text 'scd%export completed%')";         strsql = strsql + " order caseid, v.localmessagetime asc";           //setup connection string aka username, password, , database connect         constring = "data source=oprprd;user id=" + usern + ";password = " + pass + ";unicode=true";          //create connection object         oracleconnection con = new oracleconnection(constring);          //open connection         con.open();          //decalare oracle connection         oraclecommand ocom = new oraclecommand();          //assign connection command         ocom.connection = con;          //assign command string oracle command         ocom.commandtext = strsql;          oracledataadapter dataadapter = new oracledataadapter();          dataadapter.selectcommand = ocom;          dataadapter.fill(ds, "itscedexporttable");         console.writeline("{0}", ds.tables.tostring());         datagrid1.datacontext = ds;         datagrid1.itemssource = "itscedexporttable";           con.close(); 


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -