i have three tables 1. tblEmployee (employeeID int,employeeName varchar(50))
table 2. tblSalaryMaster (salaryID int, salaryName varchar(25)
table 3. tblSalaryDetail (employeeID int,salaryId int, salaryAmount int)
i made a form with employeeid name etc and bind table 2. (tblSalaryMaster) to dgSalaryDetail datagridview and add one column "Amount" to dgSalaryDetail Datagridview as
salaryID salaryName Amount
1 Basic 10000
2 HRA 4000
3 Ca 1000
now i want to save dgSalaryDetail's records to table no. 3 (tblSalaryDetail with employeeID
ie
employeeID salaryID Amount
1 1 10000
1 2 4000
1 3 1000
Please help me how to do this.
Thanks in advance.
table 2. tblSalaryMaster (salaryID int, salaryName varchar(25)
table 3. tblSalaryDetail (employeeID int,salaryId int, salaryAmount int)
i made a form with employeeid name etc and bind table 2. (tblSalaryMaster) to dgSalaryDetail datagridview and add one column "Amount" to dgSalaryDetail Datagridview as
salaryID salaryName Amount
1 Basic 10000
2 HRA 4000
3 Ca 1000
now i want to save dgSalaryDetail's records to table no. 3 (tblSalaryDetail with employeeID
ie
employeeID salaryID Amount
1 1 10000
1 2 4000
1 3 1000
Please help me how to do this.
Thanks in advance.