Quantum Grid: Does not store value if I also place the value in another column

Posted on 2009-04-23
Last Modified: 2013-11-23
My goal is to use a column to track the max value across a series of columns for each row in a Quantum Grid.  As a value is entered in a cell it will be compared to the value in the "Max" column for the row and, if the new value is greater then it is copied to the Max column

I am trying to use the OnEditValueChanged event handler for the series of data columns but when the new value is greater than the Max and the value is copied to the Max column it no longer appears in the data column to which the value was entered.  If the entered value is <= the Max value the new value appears in the entered column as expected (because nothing is copied to another column).  As you can see from my code I tried loading the column edit value but that didn't work either.

Any help appreciated as I am pushing a deadline.
procedure TfrmMain.gtvShopShCoxxPropertiesEditValueChanged(Sender: TObject);


  if ((Sender as TcxCurrencyEdit).EditValue > gtvShopShMaxPayout.EditValue) and

     (gtvShop.Controller.FocusedColumn.Editing) then


    //gtvShop.Controller.FocusedColumn.EditValue := (Sender as TcxCurrencyEdit).EditValue;

    gtvShopShMaxPayout.EditValue := (Sender as TcxCurrencyEdit).EditValue;



Open in new window

Question by:ttheimer
    1 Comment

    Accepted Solution

    I found the problem

    I needed the following line before assigning the value to the Max column.

        (Sender as TcxCurrencyEdit).PostEditValue;

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now