Discussion Locked

UnBound DBGrid Problem

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

We use UnBound DBGrid connected to variant array in one of our VB5 projects. Occasionally, we encounter a strange behaviour in the DBGrid, which is as follows -
When the data in the last row of the DBGrid is edited, the edited data seems to appear in the first row, while the last row remains unchanged. Though actually checked through the code, the data in the last row is the one that is changed, and not the first row, what appears changed on the display is the first row. This problem does not always appear under similar cicumstances. When checked with 2 DBGrids with similar number of rows, visible rows and same data, one worked fine while the other had the problem.

5 replies

by juandemarco

I have had simuler problems with this. The problem lies in the programing. The screen is not refreshing properly and the curser is told to go to point x:x. If this statement is not preceded by a clear screen statement, you will have the information appearing twice.
Solution: if you know the programer call them and tell them this; download any upgrades for the program; or lastly, if the program has a refresh key or function, use it to refresh the screen.
Hope this works.
-Juan

by jimbb

Not the screen, the form needs to be refreshed to display things properly.

Jim

This discussion is closed to new replies.