Solved

True DB Grid Pro Refresh

Posted on 1998-11-02
9
265 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
ID: 1488084
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
ID: 1488085
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
ID: 1488086
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:cinu
ID: 1488087
It happens when record is added into the xarray object and the grid is refreshed.
0
 

Author Comment

by:cinu
ID: 1488088
Adjusted points to 75
0
 

Accepted Solution

by:
GeoffS earned 70 total points
ID: 1488089
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
ID: 1488090
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
ID: 1488091
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
ID: 1488092
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

770 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