I need to be able to turn off some cells in a row based on a boolean flag. If the flag is true I everything should be enabled and visible like normal. If the flag is false however I need to have several cells in the row made invisible and readonly.
Share
You can handle the CellPainting event, check the status of your flag there and then paint the cell to be shown/hidden.
This link on MSDN may help you in this:
http://msdn.microsoft.com/en-us/library/hta8z9sz.aspx