Jump to content


bertrod

Member Since 05 Jun 2006
Offline Last Active Oct 13 2022 05:03 PM
-----

Topics I've Started

[NxGrid6] OnCellClick not called if row is not fully visible

09 October 2021 - 11:47 AM

Hello,

 

I have the following problem with NxGrid6 version 6.6.0:

 

- In case a row of my grid is partially hidden (see the enclosed screenshot)

- I click on the 2nd row, this moves a little bit the scrollbar of the grid to display to row completely, which is a good thing

- But in the function TNxGridView6.DataMouseUp, the UpCell is different than FPressedCell (see 2nd screenshot). Therefore the OnCellClick event is not called.

 

This problem comes from the function GetCellAtPos, because of course the position of the cell has changed because the scrollbar of the grid has moved.

 

 

At the moment I force the UpCell := FPressedCell because my user cannot move the rows, so it is not a problem.

Do you have a better suggestion to solve this problem?

 

Thank you!

 

 


Sorting: Cell1.ColIndex not correct

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!