Current filter:
                                You should refresh the page.
                                  • Hi
                                    I have followed the instruction in the article linked to below and and some partial success. If I had a TcxDBLookupComboBox somewhere on my form it works as I want it to. But the column in the grid isn't doing the same thing when set to use a lookup combo on the column properties. My replacement code is slightly different to the example :

                                    procedure TcxDBLookupComboBoxAccess.PrepareDisplayValue(const AEditValue: TcxEditValue; var DisplayValue: TcxEditValue; AEditFocused: Boolean); begin   inherited;   if EditValue = -1 then     DisplayValue := '** ' + Self.DataBinding.DataSource.DataSet.FieldByName('EmployeeName').AsString; end;

                                    I have also checked the above to see if it gets hit when the grid displays but nothing happens - it only fires for the lookup combo elsewhere on the form.


                                1 Solution

                                Creation Date Importance Sort by

                                Hello Simon,

                                A common approach to conditionally modify a certain cell's text is to handle the column's OnGetDisplayText event. Please check if this event can help you accomplish your task.
                                If it does not help, provide us with a small example demonstrating the problematic behavior. We will try to find an appropriate solution for you.

                                • Simon Bowyer 08.23.2019

                                  Thanks Paulo

                                  It "sort of" works ! The grid view is now displaying what I want but when I click into the cell to display the combo lookup, the test disappears if it has been replaced by something not in the lookup. This is ok I guess although I'd prefer the text to display until the user has selected the corrected version from the list.


                                • Paulo (DevExpress Support) 08.23.2019

                                  Please check to see if the solution demonstrated in the attached sample project can help you overcome this behavior.