I have a very strange problem...
My Datagridview is in Virtual Mode. 2 of the columns are data-bound, and 3 are populated programatically (by separate SQL queries to other tables).
I populate those columns by handling the CellValueNeeded event.
I receive all the data i need, but very slowly. Repainting of the cells in DGV is done one by one. But this isn't the most strange thing.
Strangest thing is, that CellValueNeeded is fired every time I hover the mouse over the programatically populated cell. Yes, hover the mouse. No clicking, or any other action.
No other events except CellValuePushed and CellValidating are handled. Value visible in a cell doesn't dissapear nor it's changed in any way. But of course query is sent to the database every time i hover over a cell. Hilarious...
I even check in the CellValueNeeded If e.Value = Nothing, but it's Nothing, even on mouse over.
I have no idea what may be causing this...
My Datagridview is in Virtual Mode. 2 of the columns are data-bound, and 3 are populated programatically (by separate SQL queries to other tables).
I populate those columns by handling the CellValueNeeded event.
I receive all the data i need, but very slowly. Repainting of the cells in DGV is done one by one. But this isn't the most strange thing.
Strangest thing is, that CellValueNeeded is fired every time I hover the mouse over the programatically populated cell. Yes, hover the mouse. No clicking, or any other action.
No other events except CellValuePushed and CellValidating are handled. Value visible in a cell doesn't dissapear nor it's changed in any way. But of course query is sent to the database every time i hover over a cell. Hilarious...
I even check in the CellValueNeeded If e.Value = Nothing, but it's Nothing, even on mouse over.
I have no idea what may be causing this...
Last edited: