hi i think u can use typed Dataset that will make it easy.
1 : add database to ur Project
2 : then from Data Sources drag ur table to win form (in Datagridview form).
3 : then in goto Form1.cs (F7) form load delete
private void Form1_Load(object sender, EventArgs e)
{
delete this line>>>>>>>> this.datos_de_estudiantesTableAdapter.Fill
(this.control_de_EstudiantesDataSet.Datos_de_estudiantes);
}
4 : then use automatic generated code in ur save button click function
private void datos_de_estudiantesBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
Use this code>>>>>>>>>>>>>
this.Validate();
this.datos_de_estudiantesBindingSource.EndEdit(); this.tableAdapterManager.UpdateAll(this.control_de_EstudiantesDataSet);
this.datos_de_estudiantesTableAdapter.Fill(this.control_de_EstudiantesDataSet.Datos_de_estudiantes);
}
5 : hope helping u