Click here to Skip to main content
15,906,097 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
SQL
Please help
I have a datagridview in form 1 which is bound to access database and by clicking a button in form1 i'm opening a form2 and adding records to access database and after closing the form 2 the datagridview should be updated by the record which i have added to access database.
Please help me with the coding

Regards

Mahendran
Posted
Updated 23-Apr-11 20:12pm
v2
Comments
Sandeep Mewara 24-Apr-11 1:55am    
Not very clear... please rephrase and update question.
Oshtri Deka 24-Apr-11 8:30am    
Is this homework?

1 solution

Try this

{
Form1()
{
loadDatagrid();
}
//while clicking Add button Form3 dialog should show
private void btnAdd_Click(object sender, EventArgs e)
{
Form2 frm = new Form2()
frm.ShowDialog();
loadDatagrid();
}

//Bind datagrid
private void loadDatagrid()
{


}

}
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900