Insert row in gridview

Hi friends, can you help me?. I have a form where I wanna do an 1 to many relation, where one role can have many users. I wanna select differents Users in a modal with checkbox and after that list them in a GRIDVIEW. Finally save the data into my DB.