Questions tagged [stringgrid]

66 questions
0
votes
0 answers

How to put JSON data into a TStringGrid?

There are examples of JSONs as follows. The JSON example that we are trying to put in the StringGrid is larger than this original text. Please tell me how to put JSON in the StringGrid using a for loop or any iteration statement. { …
손상희
  • 13
  • 3
0
votes
0 answers

How do you prevent an FMX StringGrid column from being blank?

I have an FMX TStringGrid with three columns. Column 1 is a TStringColumn. Column 2 is TCurrencyColumn. Column 3 is a TPopupColumn with 3 items 'One','Two','Three'. I've also added an OnEditingDone event to show a message when Column1 is blank. What…
0
votes
1 answer

Invoke Delphi FMX StringGrid TPopupColumn using the keyboard?

I have a Delphi 11 FMX project with a StringGrid. I added a TPopupColumn to the StringGrid and added two items in list. The only way I have found to invoke the TPopupColumn and get to those values is by using the mouse. Is there a way to invoke the…
0
votes
1 answer

Delphi StringGrid refresh

Learning Delphi (have a ways to go), using Rio. I figured out how to use a colored background in TStringGrid rows - but it looks like I need to refresh when data in those rows changes (so as to get different colors to show up based on the data…
0
votes
0 answers

StringGrid to Database Table

I am using a program which shows data in tabular form that uses StringGrid. As you may know that you cannot copy and past the data in StringGrid as whole but induvidually. So, my question is, is there any code that allows me to select all data in…
0
votes
1 answer

Delphi FMX stringgrid cell does not show checkboxes

Using Delphi 11.1 the application is of the FMX (FireMonkey) type. I have a TStringgrid with a TCheckColumn. The grid does not show the checkbox. If I click two times on the cell the state changes and the the box is shown, after that it behaves…
user741461
  • 49
  • 7
0
votes
0 answers

Issue with TMS TAdvStringGrid ControlCount & BiDiMode & CellControls Under Delphi Rio

What I want: Assign some TButtons controls to several cells. implement a Drag & Drop routine to move created buttons in the AdvStringGrid (v8.6). Previous steps with the AdvStringGrid BidiMode set to bdRightToLeft. Used Code for testing…
Novicius
  • 31
  • 5
0
votes
3 answers

Delphi FMX TStringgrid, draw a checkbox on a single cell

I want to put a checkbox on a single cell (not a checkcolunn) of a FMX stringgrid. I think that I need to use 'StringGrid1.AddObject' but I do not know how to go from there.
user741461
  • 49
  • 7
0
votes
1 answer

Delphi FMX StringGrid how to change the keyboardtype to numeric

Using Delphi 11.1 FireMonkey Hello I would like to change the keyboardtype of a stringgrid column to mumeric (for Android). Could someone please help me with that? Thanks! Ad
user741461
  • 49
  • 7
0
votes
1 answer

FMX StringGrid Column Header Background

SOLVED: I'm trying to change the background color of the column header on an FMX StringGrid using the onDrawColumnHeader. I can change the column header color but I lose the Header Text and Header Grid Lines. What is the proper way to change the…
0
votes
1 answer

Delphi 7 stringGrid first row content

In delphi 7, you have a one column stringGrid with no fixed col, whose rowCount is 50 and populate it with 100 items. After playing around with navigation keys, how to find out, by code, which of those 100 items occupies the first position of the…
0
votes
1 answer

Adding New Entry at bottom of StringGrid in C++ Builder at run time

I want to add new entries generated by logs at run time from my software at the bottom of StringGrid widget (20 rows and 2 columns) in C++ Builder 5. Whether there is any Property of StringGrid widget which can automatically delete entry in top…
0
votes
0 answers

Access violation with OnDrawCell Procedure in delphi

I'm quite new at programming, and I'm having trouble with an Access Violation in the DrawCell Procedure below. I'm creating a maze and each cell in the 2D Array maze has a boolean attribute called "wall". When the program starts, all cells in the…
user9215386
0
votes
1 answer

Coloring cells in C++ builder, StringGrid

I tried to do this: void __fastcall TTetrisGame::DrawGrid1DrawCell(TObject *Sender, int ACol, int ARow, TRect &Rect, TGridDrawState State) { this->Canvas->Brush->Color=clBlue; this->Canvas->FillRect(Rect); } But it is a really weird…
user7838474
0
votes
1 answer

TStringGrid. Row lines are not drawn when scrolling horizontally

In Delphi XE7 FMX platform StringGrid rows are not properly drawn when scrolling the content horizontally. Steps to replicate: Place a TStringGrid on a form, and add a few column(for example: 10). At runtime scroll the grid content horizontally, and…
Łukasz P
  • 1
  • 1