jahlxx Posted July 18, 2016 Posted July 18, 2016 Hi. How to know the actual column of a unidbgrid? selectedindex is not recognized. thanks. Quote
Sherzod Posted July 18, 2016 Posted July 18, 2016 Hi, If I understand correctly you, try: type TMyUniDBGrid = class(TUniDBGrid) end; procedure TMainForm.UniButton1Click(Sender: TObject); var CurrCol: Integer; begin CurrCol := TMyUniDBGrid(UniDBGrid1).CurrCol; ShowMessage(IntToStr(CurrCol)); end; Best regards. Quote
jahlxx Posted July 18, 2016 Author Posted July 18, 2016 ok. don't works when dbgrid is in edit or insert mode Quote
jahlxx Posted July 18, 2016 Author Posted July 18, 2016 ok. works. bur onkeydown of the grid doesn't raise when the dataset is in edit or insert mode. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.