Well, I worked around this by using OnSetEditText to write the column/row to a few variables - that way when KeyDown catches the [return], I know what cell column/row the return key was entered in.
I am not sure this is the right way to do things though..
I see OnKeyDown and it seems that would work - but this event doesn't pass the column and row to the function - so how is it known what row/column the user pressed enter (VK_RETURN) in?
I'm a little confused - I don't see StringGridKeyDown() listed as a method for TStringGrid in the Borland Documentation, nor when searching do I get any results from the documentation..?
Hello,
Firstly - Nice forum!
My question: I'm using TStringGrid. When a user edits a cell, I call the SetEditText() Method. It passes me AnsiString of value entered in the cell.
What I would like to do, is if the AnsiString Value is [enter] - do something.
Normally I would do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.