Hello Wisej.
I have a datagridview on the main screen of my application, it is used all day by 4 or 5 people and works fine apart from sometimes (once every few days) a number of rows are all blank instead of showing data, this 15 second video shows the problem happening:
The expected behaviour is that all rows show data, there shouldn’t be any rows without data showing on them. The user can flick to another screen then back again and all the rows show data again. I can’t make it happen in my test environment so can’t send any example code to you so I understand this is not something that you can offer a definite solution for but am looking for any ideas as to what might be causing this problem and therefore what I can do to stop it happening.
Thank you
Andrew
Now that I think about it, I have seen some similar before and it turned out to be an exception during the rendering of the rows. Those exceptions are logged but not displayed to the user. It could be a data error or a data formatting error.
You can enable logging to a file in web.config using
<configuration>
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="TextWriterOutput.log" />
<remove name="Default" />
</listeners>
</trace>
</system.diagnostics>
</configuration>
the file can get big and it will slow down a bit. You can also attach to the DataError event of the DGV to see if you get a hit.
in debug mode you can simply enable the exceptions in VS Debug->Exception Settings.
Going to another screen means switching browser tabs, or going to another application? Or do you mean another screen in the app?
It looks like there may be rows added in a background task? Also check the chrome console to see if there are javascript error.
BTW, a great free chrome extension to record a web page is screencastify.
Please login first to submit.