Hi I’m working with the datagridview in virtual mode and I have a background timer that is checking for database changes and if it finds changes to update the row/cell with the changes.
Right now I am just doing cell[i].Value = {new value from db}
It never updates the ui. I’ve tried a few different ways and can’t seem to get it to work.
Any ideas?
Hi Mark,
Sorry for the delay, I just got around to this. I have attached the modified sample.
HTH
Best,
Luca
Okay I think I figured out a way to do it. Not sure if it is the most efficient but setting the rowcount = 0 and then setting it back seems to work and I don’t look the selecteditems.
dgComputers.RowCount = 0;
dgComputers.RowCount = ComputerSelectSqlGenerator.TotalItems.Result;
Here is a slimmed down sample of what I am trying to do.
Thanks,
Mark
CellValuePushed is an event from the DataGridView how would I invoke it?
I just tried and it works for me. Are you storing the value in CellValuePushed and retrieving it in CelValueNeeded?
Please login first to submit.