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"?
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...
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...
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...
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...
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
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...
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...
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...
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...
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?
...
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...
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...
4
Solved
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...
1
© 2022 - 2024 — McMap. All rights reserved.