dbgrid Questions

6

Solved

I have a TDBGrid. It works, but the columns shown are very large. How can I set an "auto-fix column width"?
Pich asked 7/7, 2013 at 6:49

1

Solved

I am using a TDBGrid component in a Delphi application, when I change rows colors the grid lines became unclear or almost invisible. So, can any one show us how to change the color of the grid lin...
Vizard asked 30/12, 2018 at 22:1

6

Solved

I need to get the value of the selected cell of a DBGrid in Delphi. I have no idea how to do it. I tried dbGrid's OnMouseMove pt : TGridCoord; ... pt:=dbGrid.MouseCoord(x, y); [Edited] I can us...
Affinitive asked 30/11, 2009 at 18:11

3

Solved

I need to refresh dbgrid constantly, in real time. Close and open dataset works fine, but blink the dbgrid. What can I do to avoid this? I'd like a solution like Ajax, that update only the necessa...
Questionable asked 22/2, 2010 at 13:9

2

Solved

When you have a TDBGrid, full row selection, and always show selection, even when not focused, and you want to fully owner-draw it, you have a choice of a deprecated event OnDrawDataCell , and a ne...
Jugal asked 27/2, 2012 at 16:47

2

Solved

I have a column which have only "yes" and "no" values. I want if column value is "yes" then only that cell background color is red else "no" then background color is yellow but this code colors who...
Lifeanddeath asked 19/11, 2014 at 20:8

3

Solved

Well, some kind of n00b question from me. I've surfed the net and similar questions here but haven't found any right answers for such simple (as I thought) problem. I have a DBGrid. I select one r...
Aleron asked 25/10, 2009 at 11:8

2

Solved

Good day people. First off, I'm not an native English speaker I might have some grammar mistakes or such. I need an advice from people who has done something or an application alike mine, well, t...
Alexio asked 29/11, 2013 at 22:13

1

Solved

Is it possible to get the row number that is displayed from the underlying dataset in the top-most row of a DBGrid, without that top-most row being the currently selected row, when the number of re...
Floccule asked 3/8, 2013 at 14:46

1

How to change color of dbgrid rows that have the same value on a field in delphi? for example all rows that have the same teacher note: those rows are grouped, and come after each other in dbgrid...
Byblow asked 28/5, 2013 at 19:40

1

I'm just trying to use delphi XE, before that I've been a big fan of Delphi7. I see the new dbgrid allows to use themed and gradient styles. I'm using gradient and set rowselect, it has a propert...
Landlordism asked 24/9, 2011 at 1:51

1

Solved

Continuing with the project started in: How to auto fit/scale DBGrid's (or other similar) columns widths according to its contents? I used the @alzaimar answer to auto fit the columns accordi...
Investigate asked 8/11, 2012 at 20:44

3

Solved

I would like to format specific cells to force two decimal places. The data is coming from an ElevateDB stored procedure and hooked into a TDataSource. EDIT: SQL Programming Note: I wasn't ...
Rifleman asked 22/4, 2012 at 20:26

3

Solved

For our dbgrid we want the scrollbars to be constantly hidden. Since TDBGrid doesn't have a 'scrollbars' property, we use: ShowScrollBar(DBGrid1.Handle, SB_VERT, False); ShowScrollBar(DBGrid1.Hand...
Mesquite asked 23/9, 2011 at 13:15

2

How to use checkboxes inside a standard TDBGrid to select multiple records? Or perhaps, do you have any recommendation for a free/open source sister of DBGrid that allows anyone to do that easily? ...
Oxfordshire asked 24/5, 2011 at 16:30

2

Solved

I want to activate a cell in a TDBGrid by code. By "activate" I mean like the user clicked inside the cell, ready to edit the cell content. How could I do this? Edit: This probably involves two st...
Shortterm asked 2/11, 2011 at 10:22

9

Solved

I gave up on Delphi's DBGrid nearly a decade ago because it is simply no good. Since then, I have used Virtual TreeView which offers a lot of value but it has a few issues. Like the current state o...
Massey asked 3/8, 2009 at 8:24

1

I have searched a database using a query. The results of the search are displayed in a DBGrid component for the user to select the row s/he wishes to proceed with. DBGrid always sets the record...
Discretion asked 19/9, 2010 at 7:9

4

Solved

D6 prof. Formerly we used DBISAM and DBISAMTable. That handle the RecNo, and it is working good with modifications (Delete, edit, etc). Now we replaced with ElevateDB, that don't handle RecNo, an...
Muoimuon asked 8/6, 2010 at 8:12

2

Solved

I have a DBGrid on a form. The DBGrid has many columns, so an horizontal scroller is displayed. I scroll the DBGrid view to the right to see more columns. If I select a row, the DBGrid view is auto...
Sorus asked 2/12, 2008 at 21:29

3

Solved

I am using a DBGrid component in Delphi. I wonder how I can set the format of a column. I have real values that I want to be displayed as currency in the grid. Someone knows how?
Discuss asked 16/10, 2008 at 14:1
1

© 2022 - 2024 — McMap. All rights reserved.