jahlxx Posted July 18, 2016 Share Posted July 18, 2016 Hi. How to know the actual column of a unidbgrid? selectedindex is not recognized. thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted July 18, 2016 Share 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. Link to comment Share on other sites More sharing options...
jahlxx Posted July 18, 2016 Author Share Posted July 18, 2016 ok. don't works when dbgrid is in edit or insert mode Link to comment Share on other sites More sharing options...
jahlxx Posted July 18, 2016 Author Share Posted July 18, 2016 ok. works. bur onkeydown of the grid doesn't raise when the dataset is in edit or insert mode. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now