MVakili Posted July 24, 2025 Posted July 24, 2025 The problem I encountered when displaying livestock data is that: The field descriptions (column headers) do not align with the values displayed in the same column. In fact, it seems that the field values do not match their headers and the data is shifted or displayed in the wrong column. Fields like "Gender", "Gender Code", "Serial", "Date of Birth" and... are in a row but their values seem to be shifted in between. Some columns have a value of zero but it is not clear whether that zero is related to the code or the text. All the records are similar but the table UI is not reliable because the display order is messed up. Has anyone had a similar experience in UNIGUI? Could this be due to the Columns, DataField, Alignment, or GridOptions settings? Does anyone have any suggestions for ensuring that the field matches the correct column in TUniDBGrid? I would appreciate your advice on where this problem comes from and how to fix it. uni-1.95.0.1592 Delphi 11 Quote
Sherzod Posted July 24, 2025 Posted July 24, 2025 Hello, If possible, could you create a small test case or sample project that reproduces the issue and share it here? Quote
MVakili Posted July 25, 2025 Author Posted July 25, 2025 On 7/24/2025 at 2:20 PM, Sherzod said: Hello, If possible, could you create a small test case or sample project that reproduces the issue and share it here? Hello I think everything is clear in the picture. The only thing added to this grid is a CSS This seems to occur when the number of grid fields increases. In this part of my program, there are about 60 fields of different types together. I tried to create an example for you, but it is very difficult because it requires communication with the SQL server. Quote
bahry Posted July 26, 2025 Posted July 26, 2025 Hello @MVakili This problem occurs when using RTL := True, you must enable UiDBGrid1.Options.dgRowNumbers := True; Regards Quote
MVakili Posted July 27, 2025 Author Posted July 27, 2025 On 7/26/2025 at 6:18 PM, bahry said: Hello @MVakili This problem occurs when using RTL := True, you must enable UiDBGrid1.Options.dgRowNumbers := True; Regards Thanks for your reply. I'll check and hope that's the problem. Quote
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.