I have a DataGridView which is displaying Data from dbo.tblAttendanceTimes using tblAttendanceTimesTableAdapter.GetDataBy(intEmployee)
So obviously it will display all the Data for the selected Employee.
The Employees are split in to 3 groups. What i would like to do is display all records that have a value of 0 in the [intApprovedOvertime] Column in dbo.tblAttendanceTimes for the particular group i am viewing.
Just with the GetDataBy(intEmployee) is making that difficult, there is no [intAttendanceGroup] Column in that Table or i could just GetDataBy(intAttendanceGroup)
At the moment i have all the pk Values` for the Employees in the group but i'm struggling to retrieve all records for that Employee display them then do the next Employee and add to previously displayed.
I hope i am making sense, please ask for any other information you'd like.
Two solutions can be interesting:
1/
2/
In number 2 you need to remember to adapt reader(x) to the number of values you need to add to your Row. You can also get just certain column through:
There might be few little syntax mistakes I didn't have the IDE with me haha.