How to make so that the information entered in the Stringgrid , was saved subsequently and after the release, but could then be edited at any time? Where u how to specify it?

  • Nowhere. You need to save it yourself somewhere. For example in the xml file. - kot-da-vinci
  • Thanks for the answer! Unfortunately, I come across programming for the first time. But it turned out that I had to (Correctly, I understand that if I save the information to a file, then when I start it, it will read it and put it in a stringgrid. Will I be able to change it later? Do not recommend articles on this topic? - Anna
  • Not. When running, you will need to read it yourself and fill in your StringGrid yourself from the file. If changing the table in the program is allowed, then yes, you can. Well, or if you open your file with notepad :) As for articles, start with something about working with files. - kot-da-vinci
  • kot-da-vinci, Thank you =) - Anna

1 answer 1

You will be helped by a typical combination of DB-Aware components, where any DataSet in memory is used to store data, for example from the standard TClientDataSet delivery, it has SaveToFile and LoadFromFile methods — it can save to a binary, or XML. With TStringGrid it will not work this way. As a table view, you can use the standard TDBGrid.