Solved

True DB Grid Pro Refresh

Posted on 1998-11-02
9
260 Views
Last Modified: 2013-12-26
True dB grid does not refresh properly when used with Xarray. It seems to put in extra blank lines when a new line is added. The blank lines disappear as soon as the user clicks the grid. This happens only if the number of data rows is less  than what can be displayed.
0
Comment
Question by:cinu
9 Comments
 
LVL 4

Expert Comment

by:trkcorp
Comment Utility
I have no info on your specific problem but I do want to suggest (if you have not done so already) that you go to Apex.com and get the latest version 5.0d.
0
 
LVL 1

Expert Comment

by:CarlosJac
Comment Utility
I have no info on your specific problem but I do want to suggest (if you have not done so already) that you d'ont use XArray ...
We've too many setup problems with xarray ...

0
 
LVL 3

Expert Comment

by:TheAnswerMan
Comment Utility
I luv the xarray..  havent had any setup issues with it.  what type have you guys had?

what do you mean by a new line is added. when the user enters the "new record" area?  or are you referring to adding lines to the Xarray object itself via code?
0
 

Author Comment

by:cinu
Comment Utility
It happens when record is added into the xarray object and the grid is refreshed.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:cinu
Comment Utility
Adjusted points to 75
0
 

Accepted Solution

by:
GeoffS earned 70 total points
Comment Utility
I have found the same problem you are describing.
Whilst I have not yet found a fix, a workaround which works for us is to resize the grid (smaller) and then immediately resize it back to its desired size.
We use a routine like the one below.
Elegant it aint, but on a fast machine you dont notice a thing !
I believe our office has reported it and is awaiting an answer.
 
Private Sub FixGridDisplay(TDBG)
'Forces Redisplay of grid to get rid of blank lines at the top
With TBG
    .Height = .Height - 100
    .Height = .Height + 100
End With
End Sub

0
 

Expert Comment

by:GeoffS
Comment Utility
Sorry,
I didnt mean to submit my "Resize" solution as an answer, more of a comment really !
Please reject it !
0
 

Author Comment

by:cinu
Comment Utility
i have another work around too(not elegant again). since it was only happening when the number rows is less than what can be displayed, sending couple of sendkeys to the grid so that the cursor reaches the toprow also seems to solve the problem.
0
 

Expert Comment

by:GeoffS
Comment Utility
We have not experienced any other problems with XARRAY.
I think its great, far more useful than just a means of populating a grid !

0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now