Jump to content


Get the cell value after edit


  • Please log in to reply
1 reply to this topic

#1 array81

array81
  • Members
  • 174 posts
  • Gender:Male

Posted 19 August 2012 - 01:04 PM

I have a grid with 2 columns:
1) TColorColumn;
2) TNumberColumn;

I want to do it: when the user change the value of TNumberColumn (the user click on up/down button or type a new type), my software change the color of TColorColumn. For example if the user set TNumberColumn to "1" I want see RED color, for "2" I want see the YELLOW color, ...

My problem is find a event to know the new TNumberColumn after it is change.

In this moment I use OnAfterEdit but the color change only after user exit from TNumberColumn.

How can i solve this problem?

Thanks

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,687 posts
  • Gender:Male

Posted 21 August 2012 - 05:17 PM

Hello,

You need to use OnEdit event and access to Editor property of Column and read AsString property.
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users