I need to enhance the application and the table structure cannot be amend.
Table structure:
ID StaffID Type
========================
1 1 1
2 1 2
3 1 3
4 2 2
5 2 3
6 3 1
I want to group same StaffID into one gridview row and then databind the checkbox (Type 1, Type 2, Type3) based on the value of "Type" column.
Proposed Gridview :
StaffID StaffName Type 1 Type 2 Type 3
==============================================
1 Amy [X] [X] [X]
2 John [ ] [X] [X]
3 Chris [X] [ ] [ ]
Moreover, How can i insert/delete record if user check/uncheck the checkbox in gridview ?
Thanks.