save changes in datagrid to dataset
<p>I get data from database like this(dataset - ShoppingMallDataSet(smds)). </p>

<pre><code>private void Clients()
    {
        using (ShoppingMallDataSetTableAdapters.TClientTableAdapter tcta =
               new ShoppingMallDataSetTableAdapters.TClientTableAdapter() { Connection = new SqlConnection(connection_string) })
        {
            tcta.Fill(smds.TClient);
            for (int i = 0; i &lt; smds.TClient.Columns.Count; i++)
                if (smds.TClient.Columns[i].ColumnName.Substring(0, 2).Equals("id"))
                    smds.TClient.Columns[i].ReadOnly = false;
            bs.DataSource = smds.TClient;
        }
    }
</code></pre>

<p>where bs - BindingSource. For datagrid I set binding source as datasource <code>rgv.DataSource = bs;</code>. When I make some changes I want to save it to database. So I've created a button and button click event</p>

<pre><code>void rb1_Click(object sender, EventArgs e)
    {
        smds.AcceptChanges();
    }
</code></pre>

<p>But it doesn't save changes. 
What I need to add or to change?</p>
