thank you for ypur request. Strangely, here is no convenient property for this. I'll add such for next update, meanwhile you can use a workaround code like following:
if ElXTree1.Selected <> nil then
for I := 0 to ElXTree1.Selected.Cells.Count - 1 do
It will show currently selected (by mouse or keys) cell's column index.
Regarding SelectColumn property. SelectColumn was intended to set column index programmatically and does not reflect selection changes made by mouse click and key press.
It works in cases where Cells[i].Selected has not changed.
For example, when two fields are DateTime fields and the DateTime Inplace Editor is used, select and edit the 2nd field and then click on the 1st field's cell in the same row and edit that.
In AfterOperation of the DateTime Inplace Editor, the value of Cells[i].Selected is not correct: it shows 1 and it should already have changed to 0.
Comments