Topic: Cell Highlight with interactive tablegrid

Hi Dmitry,
I have an application (please see attached) that uses an interactive tablegrid (click on Column 4 and it does one thing, click on Column 5 and it does something else).
Because I want to click on a specific cell, I set the 'goselectfullrow' option for the tablegrid to false so only the cell that I am interested in is highlighted.
However, AFTER cell click, the highlight always goes to Column 0 and does not stay in the Column I was working in.
Is there a way to keep the highlight in the original cell I had clicked.
Thanks,
Derek.

Post's attachments

Attachment icon cellhighlight.zip 338.13 kb, 334 downloads since 2019-09-28 

Re: Cell Highlight with interactive tablegrid

Hello.


Just add this line

Form1.TableGrid1.SelectedColumn := ACol; 

after

form1.tablegrid1.dbupdate; 

so will be

form1.tablegrid1.dbupdate; 
Form1.TableGrid1.SelectedColumn := ACol; 
Dmitry.

Re: Cell Highlight with interactive tablegrid

Hi Dmitry,
I never thought of trying it like that - works perfectly.
Thanks,
Derek.