title: Oracle database table in gridview
body: <p>I want to get the result from a query in my oracle database and put it in a gridview. Now my problem is, I have no idea how to output it in the gridview. I am using the gridview from the toolbox and my oracle connection is working. I also have the right <code>SELECT</code> query and I can output that in a listbox. I just have no idea how to do this in a gridview. I looked for it and I came across this: <a href="https://stackoverflow.com/questions/16115985/how-to-populate-gridview-with-mysql">How to populate gridview with mysql?</a> Although this doesn't help me.</p>
  
  <p>How can I output it in a gridview so that it looks exactly the same as a normal table in the oracle database?</p>
  
  <p>What should I use and how?</p>
  
  <p>This is my code:</p>
  
  <pre><code>public void read()
          {
              try
              {
                  var conn = new OracleConnection("")
                  conn.Open();
                  OracleCommand cmd = new OracleCommand("select * from t1", conn);
                  OracleDataReader reader = cmd.ExecuteReader();
                  DataTable dataTable = new DataTable();
              while (reader.Read())
              {
                  var column1 = reader["vermogen"];
                  column = (column1.ToString());
                  listBox1.Items.Add(column);
              }
              conn.Close();
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
  
      }
  </code></pre>