2012-05-22 43 views
1

我有一個來自顯示項目的OdbcAdapter的填充DataGridView。但是,我遇到了GetCellDisplayRectangle(column, row, overflowFlag)問題,因爲根據GetCellCount(DataGridViewElementStates.Visible),DataGridView上沒有任何單元格。填充的DataGridView顯示0格爲GetCellCount

有沒有人知道是什麼原因造成的?提前致謝。

+0

發表評論爲答案,它爲將來的其他用戶提供了一個很好的資源。 –

+0

@DavidHall我會。在我問他們8個小時之前,我有一個限制,不能回答自己的問題。 – David

回答

1

此問題發生在繼承自DataGridView的類的處理程序中。問題出在處理程序GetCellDisplayRectangle()上,其他相關函數被隱式引用this調用。