Questions tagged [stringgrid]

66 questions
7
votes
3 answers

export delphi stringgrid to excel

I'm trying to export data from a stringgrid in delphi 7 to microsoft excel. I have been using this code to do it: objExcel := TExcelApplication.Create(nil); objExcel.Visible[LOCALE_USER_DEFAULT] := true; objWB :=…
dapidmini
  • 73
  • 1
  • 1
  • 4
7
votes
2 answers

Add graphical bar to a StringGrid col

Using Delphi 2010 and a TStringGrid component, I currently display five filds from a database query. Here is a simplied example of what i am doing //set up the grid procedure TGriddata.FormCreate(Sender: TObject); begin …
Blow ThemUp
  • 895
  • 6
  • 18
  • 29
6
votes
1 answer

User editing cell in TStringGrid

How do you allow a user to edit text in a TStringGrid cell.
user2381189
  • 61
  • 1
  • 1
  • 5
5
votes
2 answers

How to convert TStringGrid from Delphi 7 to Delphi XE

Just for test how hard to convert my Delphi 7 program to Delphi XE 5 i wrote simple application on Delphi 7 - placed TStringGrid on Form, and added code on form create: procedure TFMain.FormCreate(Sender: TObject); begin With StringGrid1 do …
Nihila
  • 85
  • 4
5
votes
4 answers

Hiding focusRectangle for a StringGrid : Delphi

I'm trying to hide the border (focus rectangle) which Delphi draws around the currently selected cell in a StringGrid. I'm doing owner drawing to customize the appearance of the string grid. I've managed to get rid of everything but the…
Daisetsu
  • 4,846
  • 11
  • 50
  • 70
3
votes
1 answer

Paging Server Side Data On Client in Delphi XE using App tethering

I have Server And Client App. From Server side there are 2 buttons. 1st button "Display Data On Server". 2nd button "Send Data to Client". In a Server side i'm using FDQuery1, SringGrid1, TetheringManager1 and TetheringAppProfile1. From Client Side…
Alex Kirov
  • 217
  • 4
  • 16
3
votes
2 answers

AutoSize Columns Header

I have a string grid that's linked to a FDMemTable and when I run the AutoSize procedure (that I added to its class helper) for the first time everything is perfect. After that, when I try reopening the FDMemTable my Header goes back to the default…
3
votes
2 answers

Delete row in StringGrid- Delphi

I want to make something like that. I have a list in my StringGrid and i want to delete one row by selecting cell and then clicking the button. Then this list should show again in StringGrid without this row. The biggest problem i have with deleting…
Vekka
  • 141
  • 1
  • 1
  • 12
2
votes
0 answers

Custom control in Lazarus / Freepascal DBGrid (or StringGrid)

I have asked this question on the Freepascal site and no one seems to be able to help. I only want to display the text from a specified column in a DBGrid / StriingGrid in a control (for example a TLabel) displayed on the grid. The control must must…
pcurtis
  • 81
  • 5
2
votes
2 answers

Lazarus TStringGrid - Color a cell

Problem. I have two TStringGrids on the same Form. When I click on a cell (x, y) of the first Table, the background of the same cell (x, y) of the second table must turn red. How can I do since the tables are different? I know how to find a cell…
systemgvp
  • 41
  • 7
2
votes
1 answer

Fmx TStringGrid row color

I have a problem in Delphi 10.1 in a multi-device application (on Windows). I have a StringGrid (connected to a db) and I can change background color of row, but the problem is there is a "padding" (in grey/silver) between cells. In onformCreate I…
2
votes
1 answer

TStringGrid Labeling outside column

I am having some issues with a piece of code I wrote. I am using a TStringGrid to draw a seating plan. What it is supposed to do is label the fixedcol and fixedrow with the letter down the column and numbers for the rows. My problem is i don't…
2
votes
1 answer

Delphi XE4 stringgrid selectcell in FireMonkey

Does anyone know how to retrieve the column and row when selecting a cell in a FireMonkey stringgrid (in other words, when clicking on a cell, we want to know which column/row is being selected)...? We are using Delphi XE4. Thanks in advance.
Alex
  • 543
  • 1
  • 9
  • 21
2
votes
2 answers

EAcessViolation when clearing stringgrid

I'm trying to clear a stringgrid but I'm getting an inconsistent access violation message which seems to appear after the last column has been cleared. Here is the code: procedure ClearTable; var i:integer; begin for i := 0 to 3 do begin …
jatsb
  • 21
  • 1
1
vote
2 answers

Delphi StringGrid displayed with unwanted column spacing

Delphi TStringGrid is displayed incorrectly (with unwanted column spacing) in Embracedero Delphi 10.4. I tried everything in settings - disabled margins, disable Ctl3D, font settings, ... - I also tried creating a totally new StringGrid, but there…
klaucode
  • 180
  • 1
  • 10
1
2 3 4 5