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
1
vote
1 answer

Start typing in a selected cell of a stringgrid

With Dephi XE, when the user clicks a button, I want to be able to select a cell (no problem) in a StringGrid (SG) and then allow the user to immediately start typing into that cell. SG.Row := DesiredRow; SG.Col := 1; SG.SetFocus; This sets the…
bobonwhidbey
  • 485
  • 7
  • 17
1
vote
1 answer

Filling a TStringGrid in Delphi

I have a TStringGrid say StringGrid1 and one textbox say textbox1 on my delphi form. When I enter anything in textbox1, that comes in next row of the StringGrid1. I want that the new enteries in StringGrid1 should come on top rather than on bottom.…
user1556433
1
vote
2 answers

list all files from a directory in a string grid with delphi

I am working with Delphi 7 and I would like to list all the files in a given directory in a string grid (one file per row and all in 1 column). I have searched for about an hour now and cannot find any examples on how to do this so any help you can…
avue
  • 129
  • 1
  • 6
  • 15
1
vote
1 answer

Change text size in Firemonkey StringGrid

How to change text size in stringgrid header?
user1517933
  • 13
  • 1
  • 3
1
vote
2 answers

colour a stringgrid column depending on columnname text

I am doing this : procedure TForm1.BitBtn1Click(Sender: TObject); var dtStart: TDateTime; I: Integer; begin dtStart := DateTimePicker1.Date; for I := 0 to 7 do AdvStringGrid1.Cells[I+1, 0] := uppercase(FormatDateTime('DD/MM/YYYY DDD',…
user763539
  • 3,509
  • 6
  • 44
  • 103
1
vote
1 answer

Is there a native .NET component that is analogous to the StringGrid?

I need a control like a StringGrid (a multi-celled grid or table-like control (spreadsheet, matrix, whatever). Is there something that can be used as such in .NET?
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
3 answers

Loading StringGrid from text file

How can I load text file with integer numbers separated with space to StringGrid? Each number to each cell. Grid has to be a rectangle, so if some number is missing it should be filled with 0. Here's what I did so far, but it need to have already…
yoahim
  • 9
  • 1
  • 1
  • 2
0
votes
1 answer

TStringGrid doesn't draw scrollbars

I have a form with TStringGrid component on it. Property Scrollbars of TStringGrid is set to ssBoth. If i make the window smaller, scrollbars doesnt appear. Instead of this client area of TStringGrid is cropped. I would prefer if scrollbars were…
truthseeker
  • 1,220
  • 4
  • 25
  • 58
0
votes
0 answers

How to trap the Tab Key in a StringGrid?

I have several components on an FMX form, one of which is a StringGrid. Tab works great inside the StringGrid moving forward one cell at a time. If the Tab Key is pressed from the last column in the last row it jumps out of the StringGrid to the…
0
votes
0 answers

Grid Index Out of Range Error with MouseDown

I have created a TStringGrid. If the user Right Clicks anywhere on the grid and then uses the mouse wheel down, it triggers a Grid Index Out of Range error (EInvalidGridOperation). If instead the user left clicks on the grid, the grid scrolls…
ncng
  • 1
  • 1
0
votes
1 answer

CSV to StringGrid Out of Memory

I am having issues with loading a CSV into a StringGrid. Occasionally, it runs out of memory, but also it seems to have blank columns after each value. I've not really read from a CSV as opposed to output to one, so I took a stock example online and…
Eddy
  • 13
  • 3
0
votes
0 answers

TadvGridFilterPanel on TadvStringGrid filters dates wrong

I've got a TAdvStringGrid connected to a TAdvGridFilterPanel. The grid contains several columns of which 4 are dates. The locale of my PC is 'nl-NL' (Dutch). Date format in The Netherlands is 'dd-mm-yyyy'. When I filter dates it doesn't filter…
Paul Sinnema
  • 2,534
  • 2
  • 20
  • 33
0
votes
0 answers

Right alignment of a FMX.TStringGrid column after data binding at runtime in C++builder

I am struggling to right align a column in a TStringGrid populated after data binding at runtime in C++builder 10.4. I followed the Delphi snippets found here and there , but without any success. As result of the code below, the grid rows are drawn,…
0
votes
0 answers

How to add a TComboEdit-like column to FMX TStringGrid in C++Builder?

In C++Builder 11.2, I'm working on an FMX TStringGrid with a TPopupColumn to let the user select one item from a list that is completed at runtime. Each row of this grid has a different kind of data type, so the items on this column must be…
PCSdeZ
  • 1
  • 2
0
votes
0 answers

School project - string grid continuously redrawing

I am doing a project for school. I have written code to populate two string grids in a calendar style. The second string grid (StringGrid2) shows the month after the first (StringGrid1). This is all done in the following upDateCalendar() procedure…
Nico Smit
  • 21
  • 3