Hi,
I want to use a custom sorting on a column, but in the function OnCellCompare() the value of Cell1.ColIndex and Cell2.ColIndex do not correspond to the NxColumn6.Index.
Is there a way to find the column based on the INxCell?
Thank you!
Posted 19 November 2020 - 01:47 PM
Hi,
I want to use a custom sorting on a column, but in the function OnCellCompare() the value of Cell1.ColIndex and Cell2.ColIndex do not correspond to the NxColumn6.Index.
Is there a way to find the column based on the INxCell?
Thank you!
Posted 25 November 2020 - 04:08 PM
I was a bit struggling with this one, but I found a solution by using the Cell1.ComputedLocation:
procedure TfrmMain.NxGrid6CellCompare(Sender: TObject; Cell1, Cell2: INxCell; var Compare: Integer); begin if Cell1.ComputedLocation.X = NxTextColumn.Position then begin ...
Posted 25 November 2020 - 05:02 PM
Hi,
I didn't have yet time to see why it failed in first case. I will try it today, in meanwhile you can use ComputedLocation even though is slower.
0 members, 0 guests, 0 anonymous users