I have an Access Db Table Called Employees. The columns are as follows:
- EmployeeId (Autonumber) PK
- EmployeeName (Text)
- EmployeeRole (Test)
- DateOfJoining (DateTime)
I am displaying the data in a simple DataGridView in a winform by using the following code:
Expand|Select|Wrap|Line Numbers
- da.Fill(ds,"Employee")
Next is the simple code of binding:
Expand|Select|Wrap|Line Numbers
- dgv.DataSource=ds.Tables["Employee"];
However when I try to Update the Added record in the dataBase using:
Expand|Select|Wrap|Line Numbers
- da.Update(ds.Tables["Employee"]
Can someone guide me to such page or suggest a solution for the problem?
Regards