Recent

Author Topic: I bet its stupid but I've not seen this before and I'm stumped.[Solved]  (Read 1456 times)

jbmckim

  • Full Member
  • ***
  • Posts: 144
Adding a stringgrid to a form.  Run to test and I can't enter anything in form.  Grid is enabled, KeyPress event traps a character but other, later events don't "see" any entry.

I was able to duplicate in a dummy project and the project is attached.  Didn't do anything special to the form, although I did add a Rowcount assignment as this mimics the original project.  (Demo proj had the same result without the assignment.) I do not remember anything like this when adding my other string grids.

Thanks.
« Last Edit: May 17, 2018, 07:36:40 pm by jbmckim »

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: I bet its stupid but I've not seen this before and I'm stumped.
« Reply #1 on: May 16, 2018, 11:41:57 pm »
Hi

Have you set goEditing to True in the option property of the grid.

Similar to post a few hrs ago
https://forum.lazarus.freepascal.org/index.php/topic,41255.msg286068/topicseen.html#new
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

jbmckim

  • Full Member
  • ***
  • Posts: 144
That's it! 

Thanks.

 

TinyPortal © 2005-2018