c# datagridview cell_end edit doesnt work

here is the code:


private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
        {
          
                if (cn.State == ConnectionState.Open)
                {
                    cb = new MySqlCommandBuilder(da);
                    da.Update(ds, "myTable");

                }
               
           
        }

 


This, doesnt work :(
I insert a value in the cell, leave the cell and update dont work.
Only if i re-enter in the cell and re-type a value, update works.
Thx.


Answer this question

c# datagridview cell_end edit doesnt work

  • c# datagridview cell_end edit doesnt work