Recent

Author Topic: How to delete an specific row from a TStringGrid  (Read 4285 times)

AfootDesert41

  • New Member
  • *
  • Posts: 15
How to delete an specific row from a TStringGrid
« on: January 01, 2019, 12:13:57 am »
I'm woking on a dynamic TStringGrid, so I want it to add or, in this case, delete specific rows. How can I do this?

jamie

  • Hero Member
  • *****
  • Posts: 6953
Re: How to delete an specific row from a TStringGrid
« Reply #1 on: January 01, 2019, 12:23:29 am »
MystringGrid.DeleteRow(Index);

make sure row exist and this is a 0 based index, meaning row 1 is index via 0 and so on.

and any time in source code, you can type out MyStringGrid.  and wait for the helper tools to come up.
they will give you a list of methods, properties you have access to.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018