Updating MS Access Database Through DataGridView
<p>hi guys I'm trying to save data to database through datagridview with a button but I get the following error every time I run the application and here's my code:</p>

<pre><code>        DataTable Table = new DataTable(); 
        BindingSource bindingSource1 = new BindingSource();
 string connetionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:/Database/Database.accdb;";
        string sql = "SELECT * FROM IAE;";
        OleDbConnection connection = new OleDbConnection(connetionString);
        OleDbDataAdapter dataadapter = new OleDbDataAdapter(sql, connection);
        OleDbCommandBuilder cb = new OleDbCommandBuilder(dataadapter);
        DataSet ds = new DataSet();
        connection.Open();
        dataGridView1.DataSource = ds.Tables["IAE"];
        dataadapter.Update((DataTable)bindingSource1.DataSource);
        connection.Close();
</code></pre>

<p>the error : Value Cannot be null. Parameter name: dataTable</p>

<p>need your help and thanks</p>
