I have a lot of questions i'm a newbie in the c# world and i am updating my knowledge from the oracle forms developer to new technologies....
I am writting a query builder in c# against an Oracle Connection... It's making me have a lot of headaches(.... always a newbie)
First of all
How can i display the datagrid in table mode, i load the data in the datagrid but it's appear as treenode and i need to show it as a normal datagrid.
Second here is my code(it jus a little shit.. it just started today....) I have found that it takes a little bit of time to execute.. Can someone read it an help me....
Thanks...
This code is implemented in a button.click event:
string sql;
sql= textBox1.Text;
OracleConnection conn = new OracleConnection("Data Source=Oracle;USER ID=SYSTEM;PASSWORD=MANAGER");
conn.Open();
OracleCommand cmd = conn.CreateCommand();
cmd.CommandText = sql;
cmd.CommandType = CommandType.Text;
DataSet ds = new DataSet();
OracleDataAdapter adapter = new OracleDataAdapter(cmd);
adapter.Fill(ds);
dataGrid1.DataSource=ds.DefaultViewManager;
Thanks...