I have a populated DataGridView from an OdbcAdapter that is showing items. However, I’m having trouble with GetCellDisplayRectangle(column, row, overflowFlag) because, according to GetCellCount(DataGridViewElementStates.Visible) there are no cells on the DataGridView.
Does anybody know what is causing this? Thanks in advance.
This problem was happening in a handler of a class inheriting from
DataGridView. The problem was in the handlerGetCellDisplayRectangle()and the other related function were being called by implicitely referencingthis.