سلام تو این مثال یاد میگیریم که چطور میشه اطلاعات یه دیتابیس رو تو یه dataGrid نشون داد.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OracleClient;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public static String conStr = "Data Source=localhost;Persist Security Info=True;User ID=test;Password=test;Unicode=True";
        private OracleConnection con;
        private String query;
        private OracleDataAdapter da;
        private DataTable dt;
         
        public Form1()
        {
            InitializeComponent();
            try
            {
                con = new OracleConnection(conStr);
                con.Open();
                query = "select * from student";
                da = new OracleDataAdapter();
                da.SelectCommand = new OracleCommand(query, con);
                dt = new DataTable();
                da.Fill(dt);
                table.DataSource = dt;
                con.Close();
            }
            catch (OracleException ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}