Questions tagged [tstringgrid]

TStringGrid is VCL grid control designed to manage the handling of strings and associated objects in Delphi and related development tools. It is defined in the Grids.pas (or VCL.Grids.pas starting with Delphi XE2 version) unit.

The exact amount of features vary depending upon chosed devtool and its version.

Some documentation links include^

181 questions
0
votes
1 answer

C++ builder TstringGrid get string from specific cell

Hello everybody i have C++ tStringGrid I want to get string from specific cell with coordinates I have tried this but without luck: UnicodeString cell_obj = StringGrid1->Objects[3][2]->ToString(); Error: Access violation at address 00407617 in…
user525717
  • 1,612
  • 5
  • 28
  • 40
0
votes
1 answer

Export TStringGrid to doc, xls and pdf

I have a kind of report that I`ve created with the help of TZColorStringGrid (it is a descendant of the Delphi's TStringGrid) and I want to be able to export to doc, xls, pdf and also to be able to print this report. So I am thinking for the last…
-1
votes
2 answers

FMX TStringGrid set selected cell

I need to do a cell jump in an FMX TStringGrid. Before, I did it in a VCL application using this code: StringGrid.Row := StringGrid.Row + 1; StringGrid.Col := 1; So, how do I do that in FMX?
-1
votes
1 answer

Selecting the text within a TStringGrid cell

The component I use is a descendant of TStringGrid, called TDataGrid (which can be found on Torry). Unfortunately, it has a small bug which doesn't seem to be present in the original TStringGrid component. I have the options goEditing and…
user966939
  • 692
  • 8
  • 27
-1
votes
1 answer

How can I determine in a FMX Stringgrid if a column is resized?

How can I determine if in a FMX Stringgrid a column is resized? I can't find any information about it online.
R.Nowee
  • 1
  • 1
-1
votes
1 answer

In Delphi, how can I modify cells in a TStringGrid using a DLL procedure?

In Embarcadero Delphi v10.1 I have both a DLL library with a record, and a VCL application containing a TStringGrid and a TEdit. The idea is to take the shortstring entered into the TEdit; save it to the record in the DLL and then use the data…
M.G.
  • 11
  • 2
-1
votes
1 answer

Why InvalidateRow/InvalidateColum does not work?

InvalidateRow and InvalidateColum are not working for TStringGrid. The methods will not invalidate the entire Row/Col. InvalidateGrid always works (so this could be a dirty work-arround until the cause of the bug is found). In some circumstances (it…
Gabriel
  • 20,797
  • 27
  • 159
  • 293
-1
votes
1 answer

how to populate data in a stringgrid

i dont know how to deal with stringrids, i want to fill it with data, I've succeeded to do it with a listview this is my code to fill the listview.. var LJSONArray : TJSONArray; LItem: TListViewItem; I: Integer; begin LJSONArray :=…
markkk
  • 31
  • 2
  • 7
-1
votes
1 answer

Filling blank space in delphi stringgrid

I have a grid that can be resized. And i'm now stuggeling with filling the blank space around columns in the grid. I'm trying to achieve this on FormResize. First i calculate what is the total of columns width and then i'm comparing it to the…
user28470
  • 419
  • 5
  • 17
-1
votes
1 answer

DELPHI : String grid header background/font color

I've created a string grid with a certain amount of columns and rows. I've also handle a right clic event on the string grid which displays a popup menu when you clic on the right button. You have some options inside this popup menu. My question is…
user28470
  • 419
  • 5
  • 17
-1
votes
1 answer

syntax error, unexpected T_STRING (Trying HTML inside php)

so i have a php code to track my game server if it's online or offline. But i tried with html inside the echo but it outputs the famous T_String error. My code:
user3215687
  • 3
  • 1
  • 2
-1
votes
1 answer

Delphi: auto addition in StringGrid

It is possible to make a calculator who calculate the addition of 2 or more cells of a StringGrid and show the result in other cell? For example: I have a String grid with 6 cells. I want to show in the 6th cell 1st cell+2nd cell+3rd cell+4th…
-2
votes
1 answer

C++ Builder/VCL, Add images to string grid

Hello, so I have a problem. I'm programming a game as my Graduation Project and I'm stuck at adding images to StringGrid, It's a 2D Puzzle game. What I found is that I have to use function OnDrawCell, I tried to edit it, but I don't know how it…
-3
votes
1 answer

Save and Load contents TStringGrid

I have a simple form containing TstringGrid with 2 columns, a TStringColumn and TCheckColumn added. I have seen many examples of saving the contents to file if the cells contain text or numbers. I have not seen any examples of saving with a…
WobblyBob
  • 109
  • 1
  • 12
-4
votes
1 answer

Array, Finding if value is diagonally of your chosen x,y

So, i have a problem i found out that: if my position is [7][3] and the object is on [2][8] the sum of the x,y is the same for both of them. ex: 7+3 = 2+8 but i'm stuck on finding the same thing on the other side if you don't understand what i mean…
1 2 3
12
13
SERVER