tstringgrid Questions

3

Solved

I have a TStringGrid, and I want to delete the selected row. Basic things I've tried only delete the last row. How do I delete an arbitrary row?
River asked 3/5, 2013 at 3:28

3

Solved

I can go the long way round, loop over each row, get a TRect from CellRect(col, row), then query its State for gdSelected ... But isn't there a quicker way to get the row number of the currently s...
Orchitis asked 21/1, 2010 at 7:58

8

I would like to return the contents of a cell in a string grid when the user finishes entering the data. The user is finished when pressing the enter key on the keyboard, or single- or double-click...
Butter asked 20/2, 2011 at 7:26

3

I want to change background color ( not font ) of a cell in string grid in delphi . Just one cell not a row or a column. Can I? RRUZ : your procedure is correct and works but in my procedure d...
Langlois asked 15/7, 2011 at 0:20

2

Solved

I am running Lazarus 0.9.30. I have a standard TStringGrid on a form and want to show a different hint as I move my mouse pointer over a column title. I am using this code to do this and it sort o...
Gulf asked 14/2, 2012 at 14:46

4

FillRect doesn't paint the complete TStringGrid cell in Delphi XE2. There is a gap of 3 pixels on the left side in the default color (with BiDiMode set to bdLeftToRight). This problem doesn't exist...
Gilbertegilbertian asked 10/1, 2012 at 15:54

3

Solved

This link/pic shows what I am trying to achieve with a TStringGrid. This link/pic show what my code below is resulting in. unit Unit1; interface uses Windows, Messages, SysUtils, Variants,...
Brawn asked 5/11, 2014 at 22:6

2

Solved

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...
Bloxberg asked 21/10, 2014 at 17:0

4

Solved

I have a TStringGrid where the selected row (max 1, no multi-select) should always have a different background colo(u)r. I set the DefaultDrawing property to false, and provide a method for the On...
Quintic asked 7/4, 2011 at 3:45

2

Solved

I have a TStringGrid object on a form which has 1 FixedCol and 1 FixedRow. I want to be able to select an entire row on the object when the user clicks on any cell within that row. This selection m...
Reconstructionist asked 28/2, 2014 at 11:50

3

Solved

I want to have a button with icon at the end of each row. Like here: I tried this procedure TMyFrame.sgrd1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);...
Gintz asked 11/12, 2013 at 9:6

4

This is a follow up to my previous question Delphi TStringGrid multi select, determining selected rows regarding Delphi String Grids. It's a different question. I was looking more closely at the O...
Mathildemathis asked 17/5, 2011 at 0:29

1

Solved

i have a string grid in Delphi 7, with 0..N rows. There is a listbox with numbers from 0..N if the user clicks on the any number in the listbox number , that row number should be selected on the st...
Manganese asked 6/4, 2013 at 13:4

2

Solved

I have a TDataSource that is backed by a TClientDataset bound to a TStringGrid. I did this by right-clicking on the grid, selecting "Link to DB Datasource...", and selecting the DataSource. This se...
Cyprinodont asked 21/12, 2011 at 14:58

1

Solved

I am overriding OnDrawCell for a string grid. In certain circumstance, I want to use the normal TColor that is used for the selected row when the system does the drawing (no OnDrawCell). Which col...
Noetic asked 25/10, 2012 at 1:15

3

Solved

I am placing checkboxes (TCheckBox) in a string grid (TStringGrid) in the first column. The checkboxes show fine, positioned correctly, and respond to mouse by glowing when hovering over them. When...
Lenes asked 30/7, 2012 at 10:16

1

Solved

I have a standard TStringGrid on a form. I have one Fixed Row in the grid that contains a number of columns, which are all TGridColumns objects. I have set the column titles using the object inspec...
Machellemachete asked 5/2, 2012 at 9:57

1

Solved

Can anyone recommend a good stringgrid like component for Delphi that handles comments on each cell similar to Microsoft Excel? I am searching the web but haven't found much yet and would appreciat...
Rune asked 17/1, 2012 at 22:51

2

Solved

Why am I getting this error, I replaced a stringgrid with a listview, I then set it to viewstyle vsreport but I am getting an error like (expected '=' but '(' found) its flashing on this procedure ...
Underachieve asked 6/1, 2012 at 2:59

1

I do custom drawing of a Delphi TStringGrid using the OnDrawCell event. There is no problem with the area covered by cells, but how do I paint the background right of the rightmost column and below...
Delphiadelphic asked 9/12, 2011 at 6:46

1

Solved

I need to change the text color in a cell of TStringGrid in Delphi. Just a cell. How can I do that?
Phina asked 7/11, 2011 at 22:33

4

I am adding multiple rows to a string grid from a CSV file @ runtime, However the StringGrid seems to flicker lots when it is being upadated, I presumed there would be a beginupadate / Endupdate co...
Lore asked 14/9, 2010 at 19:30

6

Solved

One of the weaker areas of Delphi are the grids (eg TStringGrid) where, although it does a good basic job, it becomes harder when you need to print it or customise its appearance. I've used it for ...
Aubert asked 28/6, 2011 at 6:56

3

Solved

Hi does anyone know if it is possible to display a picture as a background to a string grid, Or is anyone aware of any free Grid component that can do this. Thanks colin
Scolecite asked 12/3, 2011 at 21:37

3

Solved

I want to put a TCheckBox inside a TStringGrid in Delphi in every cell of certain column. I'm using Delphi XE.
Zarla asked 14/3, 2011 at 23:55

© 2022 - 2024 — McMap. All rights reserved.