Antonio Posted November 12, 2021 Share Posted November 12, 2021 On 1/18/2019 at 6:31 PM, Hayri ASLAN said: Hello Please check attached sample application. Available values for Filter = "boolean,date,list,number,string" CustomDBGrid.rar 65.43 kB · 99 downloads Very useful, thank you so much for sharing @Hayri ASLAN!!! The filter is perfect but I have a problem with selection. 1. When I select the first record of the unfiltered grid, I correctly get the ID associated with the first record. 2. Then I filter the ID column by excluding the first record (ID filter: > 1) 3. The problem is that by selecting again the first row of the filtered grid I get the previous value (ID = 1) instead of the correct one (ID = 2). However, if I select the second row and then again the first, the result is ok. I tried very hard to fix this behavior but I couldn’t find even a dirty workaround. In attachment the project I used to replicate this problem. I am using Delphi 10.2 and UniGui version 1.90.0 build 1545. Please, any help will be appreciated!!! Thank you! UniGuiFilterDBGrid_selection_bug_demo.zip Quote Link to comment Share on other sites More sharing options...
Antonio Posted January 11, 2022 Share Posted January 11, 2022 Suggestions, anyone? Quote Link to comment Share on other sites More sharing options...
SEGNA Posted July 20, 2022 Share Posted July 20, 2022 On 1/18/2019 at 8:31 PM, Hayri ASLAN said: Merhaba Lütfen ekteki örnek uygulamayı kontrol edin. Filtre için mevcut değerler = "boolean,date,list,number,string" ÖzelDBGrid.rar 65,43 kB · 110 indirme Merhaba Hayri Bey, CustomDBGrid i component olarak yükledim örnekteki gibi filter için değer atıyabiliyorum. Columns içindeki propertylere baktığım da ise Filter string alanı görünmüyor. Filter property i buraya eklemek mümkün mü? Yardımcı olursanız sevinirim. Kullanmış olduğum versiyon uni-1.90.0.1560. Quote Link to comment Share on other sites More sharing options...
picyka Posted March 6, 2023 Share Posted March 6, 2023 On 11/12/2021 at 1:06 PM, Antonio said: Very useful, thank you so much for sharing @Hayri ASLAN!!! The filter is perfect but I have a problem with selection. 1. When I select the first record of the unfiltered grid, I correctly get the ID associated with the first record. 2. Then I filter the ID column by excluding the first record (ID filter: > 1) 3. The problem is that by selecting again the first row of the filtered grid I get the previous value (ID = 1) instead of the correct one (ID = 2). However, if I select the second row and then again the first, the result is ok. I tried very hard to fix this behavior but I couldn’t find even a dirty workaround. In attachment the project I used to replicate this problem. I am using Delphi 10.2 and UniGui version 1.90.0 build 1545. Please, any help will be appreciated!!! Thank you! UniGuiFilterDBGrid_selection_bug_demo.zipUnavailable UniGuiFilterDBGrid_selection_bug_demo.zip 60.92 kB · 15 downloads It would be really cool if this filter options came native to the grid Quote Link to comment Share on other sites More sharing options...
Antonio Posted March 7, 2023 Share Posted March 7, 2023 On 11/12/2021 at 5:06 PM, Antonio said: Very useful, thank you so much for sharing @Hayri ASLAN!!! The filter is perfect but I have a problem with selection. 1. When I select the first record of the unfiltered grid, I correctly get the ID associated with the first record. 2. Then I filter the ID column by excluding the first record (ID filter: > 1) 3. The problem is that by selecting again the first row of the filtered grid I get the previous value (ID = 1) instead of the correct one (ID = 2). However, if I select the second row and then again the first, the result is ok. I tried very hard to fix this behavior but I couldn’t find even a dirty workaround. In attachment the project I used to replicate this problem. I am using Delphi 10.2 and UniGui version 1.90.0 build 1545. Please, any help will be appreciated!!! Thank you! UniGuiFilterDBGrid_selection_bug_demo.zip 60.92 kB · 16 downloads Hi everyone, is anybody able to help with the selection bug I found using the grid filter? Please help 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.