TDBGrid is a VCL control used to display and manipulate records from a TDataset in a tabular fashioned way. It is defined in DbGrids.pas unit.
Questions tagged [tdbgrid]
156 questions
0
votes
1 answer
Right clicking on TDBGRID delphi2007
When I right-click on a DBGrid it opens a popupmenu, but it also selects (hightlights) the cell I am currently over when right-clicking.
Is there a way to not select(hightlight) the cell I am over when right-clicking and only have the popupmenu…

Joe
- 2,675
- 3
- 21
- 26
0
votes
2 answers
change size of button in DateTimePicker c++ builder
Good Day. Please Help. How change size of buttons (buttons: up, down, open calendar) in component DateTimePicker. I want to do touch application, but buttons too small. And i have the same trouble with ROWS in component DBGrid.

Yaroslav Vozyka
- 71
- 1
- 1
- 2
0
votes
1 answer
Scroll bars on DB grids - seeking a definitive approach
I see lots of DB scroll bar questions, but never seem to find a definitive answer to this one.
There is no option (property) to add/hide DB grid scroll bars, either singly or jointly. The simply auto-appear when needed.
If I don't have enough rows…

Mawg says reinstate Monica
- 38,334
- 103
- 306
- 551
0
votes
1 answer
How to change values of a mysql database via dbgrid?
Hey guys good morning,
i got a DBGrid and the UniDac components. I a use a popupmenu and select a row. I fill via the onclick event from the popupmenu a new form with my data in my TEdit.
Now the problem is, that i want to edit my data which i…

Hidden
- 3,598
- 4
- 34
- 57
0
votes
2 answers
DBGrid - how to show the differnce between a column value in two adjacent rows as another column?
Let's say I record my car's latitude & longitude every minute or so, adding a row to a table each time.
I want to have a DB grid with 4 columns
latitude
longitude
distance since last measurment
curent street address, if known
Number 4, I can try…

Mawg says reinstate Monica
- 38,334
- 103
- 306
- 551
0
votes
1 answer
I need a DBGrid OnAfterCellClick
I have three DBGrids and three Tables, and two of them are linked with Master Fields and work as expected. When the user clicks on grid-1, it shows three items in grid-2.
When the user clicks on grid-2, I want to use Locate to select the Row in…
user2175495
0
votes
0 answers
How to adjust DBGrid columns width automatically
I've been try to use this Delphi code with C++ Builder XE. I manually convert the language into C++ Builder language.
This procedure was working correctly. When I try to maximize the form holding the DBGrid, this procedure successfully split the…

Jessie M
- 498
- 1
- 9
- 23
0
votes
2 answers
How to edit Calculated Field value in C++ Builder XE
I have a TDBGrid which shows some calculated fields. I'm use MySQL database.
I need to edit field values of one calculated field called "Date" but I can't.
I try to edit other field called "Description" which have StringField type and it…

Jessie M
- 498
- 1
- 9
- 23
0
votes
4 answers
Tweaking a TDbGrid
I am taking my first stumbling steps into DB aware controls (any good tutorials?).
I have a MySql table with 6 columns and have managed to load it into a TDbGrid.
One of the columns however is an index into another table. It is a bar code and,…

Mawg says reinstate Monica
- 38,334
- 103
- 306
- 551
0
votes
2 answers
0
votes
0 answers
drag multiple records from dbgrid
I have a TDbGrid with some records. I want to drag an drop multiple records to a listbox on simple drag and drop. but after selecting the multiple records when i click on the selected records of grid for dragging, all selected records are become…

Udhayakumar M
- 51
- 1
- 3
0
votes
1 answer
DELPHI: Put calculated value into a master detail where details are in a grid
I have created a master-detail relation using ClientDataSets (Service & Addons). The Services are displayed in a DBLookupComboBox (cboServices) and once a service is selected the Addons are displayed in DBGrid (grdMain).
The Addons has a checkbox…

BrianKE
- 4,035
- 13
- 65
- 115
-1
votes
1 answer
how to change the color of selected row in tdbgrid in delphi
Iam creating an application in delphi where I want to change the color of selected row of tdbgrid which is based on search ..can it be possible ..

banita
- 153
- 1
- 2
- 12
-1
votes
1 answer
Use an object type that is declared in the implementation section of another unit?
I'm making a descendant of TDBGrid. How can I declare a variable of type TDBGridInplaceEditor, since it is declared in the implementation part of the unit DBGrids?

DrWael
- 247
- 2
- 12
-1
votes
1 answer
Delphi - Using DBGrid to select rows from a search
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 pointer to the first record in the results set, so…

David Kinraid
- 1
- 1
- 1