55143681 Posted August 14, 2019 Share Posted August 14, 2019 unigui1507+10.3.2 uniDBGrid maybe has some bugs, 1、see the video,If I change a column to lock,the column will move to the locked columns,but the cell display ERROR_1 2、if column a\b\c all have the same group header,then column a/b/c can not be set to locked, I think a or b or c should not be set to locked,but a and b and c are the same group ,they should can be set to locked. Video_2019-08-14_205043.wmv Quote Link to comment Share on other sites More sharing options...
fabiotj Posted January 19 Share Posted January 19 I have a similar problem, with ERROR_1. I my case when I use dbCheckSelect activated (on Design or RunTime) and need reseize columns, but we discovered that the property dgDontShowSelected is the cause for us. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19 Share Posted January 19 Hello, Which build of uniGUI are you using? Quote Link to comment Share on other sites More sharing options...
fabiotj Posted January 19 Share Posted January 19 1.95.0.1577, but this error is older, I face them from 2022, but only now I found the "solution" - don`t use dgDontShowSelected and use a js code for deselectAll() after show form or open query.🙂 Other problem that some times occurs are misalignment. Look the images with the error. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19 Share Posted January 19 Okay, but can you please make a simple testcase to reproduce this issue? Quote Link to comment Share on other sites More sharing options...
fabiotj Posted January 19 Share Posted January 19 Below is the test case using UniGui's GridCheckSelect demo. In it, the dgDontShowSelected property was already active, and I made use of changes that I commonly make in my system in DrawColumnCell(), such as changing color, hiding columns, this sometimes causes misalignment as in the image and sometimes ERROR_1. But if you turn off dbDontShowSelected (=False) the errors do not occur. Another thing that can help with tracking down the error is that if it is just the misalignment of the columns as in the attached image, and you click on the Grid's refresh button, the columns are realigned correctly, but if it is ERROR_1 then even that does not solve it. . I was unable to reproduce ERROR_1 in the test case but it also only occurs on my system if dbDontShowSelected is True. Hope this helps . GridCheckSelect.7z Quote Link to comment Share on other sites More sharing options...
fabiotj Posted January 22 Share Posted January 22 Hello Sherzod, when you can, please tell me if you were able to reproduce the problem there? 🙂 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23 Share Posted January 23 Hello @fabiotj Ok we will check this case. But why are you manipulating the visibility and column widths specifically at this event? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 23 Share Posted January 23 This event is only for manipulating cell visual attributes. It should not be used for any other purpose. Quote Link to comment Share on other sites More sharing options...
fabiotj Posted January 23 Share Posted January 23 Thanks for the answer. So could you suggest me the best Grid event to do this? Just so you can better understand my scenario, I have a function that runs in this DrawColumnCell event that makes several adjustments to: Width, Title, Hide, Text, etc... in the columns. And the problem always only occurred when I add the Grid checkbox with dbCheckSelect, now I recently discovered that if I turn off dgDontShowSelected the problem stops, but the first line is always marked, because as I learned here on the forum the function of this last one property is just to uncheck the first line of the checked. Quote Link to comment Share on other sites More sharing options...
PS1 Posted January 23 Share Posted January 23 Locking in the UniDBGrid has many problems. I posted similar topic 2 months ago. This property should be checked carefully. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.