I'm writing a cell and row class that will allow users to host controls inside DataGridViewCell
s and DataGridViewRow
s. I'm doing it by adding the control to the DataGridView's control collection and showing or hiding it at the appropriate position onscreen to overlay the cell or row. I need to find out when the cell or row's bounds or visibility change so I can update the position of the overlayed control. What functions should I override, and what events should I listen to, to find out each time the changes occur?