Hi Hs2,
I was able to figure out how to store the values of the checkboxes but it was kinda tricky. Since I had multiple pages in the gridview and would lose the selected options when I went to the next page because of post back I ended up storing the values (any unique item in the row) in an Arraylist. Then I put this arraylist into the view state and retrieved it when the page reloaded with the next results. I did this in the datagrid_pageindexchanged Event.
now Im stuck on trying to edit the column header so I can put a check all checkbox in the Column header. I tried doing:
col.HeaderItem.TemplateControl.Controls.Add(CheckAll)
but this did not work. I need to be able to do this at Runtime and need a way to select/unselect all rows.