I'm having difficulty understanding the flow of how these events get called and where I should modify formatting info.
The grid view events I'm working with currently are grid_CellFormatting, grid_CellBeginEdit, grid_CellEndEdit. I have a grid, that has many columns of data that are bound to a generic list of objects. These objects have bool properties I'd like to allow the user to update through a single grid with many columns/rows. The majority of the columns are GridViewCheckBoxColumn(the ones that I want to not be read-only). I'd like to allow the user to check these boxes, and it will turn the cell they are contained within to a different color. Then after they've clicked many, they can commit these changes using a save button.
I assume that I can only update the formatting of a cell in the _cellformatting event. So, I assume I need to pass some data along to this event that allows it to look at the checkbox and determine if the value is changed. I've written some code that would do this using the .Tag object on the cell. This isn't working well, and I'm looking for some advise. I can't be the first one to use a grid in this fashion. Allow users to make changes, and see those changes, and then commit all at once.
Any advice?
The grid view events I'm working with currently are grid_CellFormatting, grid_CellBeginEdit, grid_CellEndEdit. I have a grid, that has many columns of data that are bound to a generic list of objects. These objects have bool properties I'd like to allow the user to update through a single grid with many columns/rows. The majority of the columns are GridViewCheckBoxColumn(the ones that I want to not be read-only). I'd like to allow the user to check these boxes, and it will turn the cell they are contained within to a different color. Then after they've clicked many, they can commit these changes using a save button.
I assume that I can only update the formatting of a cell in the _cellformatting event. So, I assume I need to pass some data along to this event that allows it to look at the checkbox and determine if the value is changed. I've written some code that would do this using the .Tag object on the cell. This isn't working well, and I'm looking for some advise. I can't be the first one to use a grid in this fashion. Allow users to make changes, and see those changes, and then commit all at once.
Any advice?