Jump to content


Alex

Member Since 08 Dec 2007
Offline Last Active May 18 2017 03:30 AM
-----

Topics I've Started

ListColumn change value event

17 May 2017 - 02:42 AM

Hello, I can't find a suitable event to get current value of a ListColumn's cell. The closest is OnSelect but

1. there is no parameters in this event

2. i can get index value of the cell with the non very good looking construct below, but the index updates only after the cell loses it's focus or something:

NextGrid1.Cell[NextGrid1.SelectedColumn, NextGrid1.SelectedRow].AsInteger

OnCellFormating issue

07 May 2017 - 12:13 AM

Hello, i got a problem with the OnCellFormating event. I copied the code from my other project to the new one, and now the event called all the time if there are records in the grid (-> 100% cpu core utilization):
 
  if (ACol = 3) then
  begin
    NextGrid1.Cell[ACol, ARow].TextColor:=clRed;
  end;
this code works fine (0% cpu utilization):
  if (ACol = 3) then
  begin
    beep;
  end;
 
I'm using Delphi Seattle, NG Version 5.9.75. Thank you.

 


LastRowInView

15 November 2016 - 06:16 PM

Hello, how do I set (scroll to) First Row In View ? ScrollToRow sets row last in view. Ty.

 

PS. Wrong subject, sorry.