Questions about Delphi visual component DBGrid might have this tag.
Questions tagged [dbgrid]
236 questions
-1
votes
2 answers
How do I search for values in a DBGrid and use them for an equation?
I recently made a very basic "Client" DBGrid that shows info from an Access database (connected made with an ADOQuery, DataSource,ADOConnection and ADOTable). I would like to know if there is a way that I can search for spesific records (like just a…
![](../../users/profiles/6009464.webp)
L. Blue
- 1
- 3
-1
votes
1 answer
Delphi DBgrid Expand/Collapse
I'm trying to implement an expand/collapse option in the Delphi DBGrid.
Sadly it is not a default supported option. The data used for display is comming from an ADOStoredProcedure.
The function has to be made for the DBGrid, using a alternative…
![](../../users/profiles/4019118.webp)
PieterSchool
- 481
- 3
- 14
-1
votes
1 answer
delphi using dbgrid to view a record on a detail page
I have a form with a dbgrid and a second form with dbedits. My form with the dbgrid has a double click event(code below is the event) the dbedits on the second form has a data source that is connected to the first form's CDS and when I compile and…
![](../../users/profiles/4174204.webp)
Don
- 3
- 4
-2
votes
1 answer
Draw the DBGrid (replacement image from the resource)
I need your help. Draw method the DBGrid. I have table DBGrid.
How? To my method "DrawDBGrid", add my method "LoadDefaultImage"
If there is no file path (image), a replacement image from the resource will be displayed.
My…
![](../../users/profiles/7971012.webp)
Maryna
- 9
- 3
-2
votes
2 answers
Delphi DBgrid change column width
I have problem with column width in dbgrid in delphi. I get result from database and i has three columns ID, Name, Description.
Name and description has width about 2000+. I try to change in DBGrid > Columns > description > width = 300 but not…
![](../../users/profiles/2040496.webp)
Ivan
- 4,530
- 11
- 42
- 69
-2
votes
1 answer
delphi DBGrid cell not empty
In my form, i have a TDBGRid, TDatasource , MessageTable and 2 button. I have a button to add new row in my DBGRID :
MessageTable.Append;
MessageTable.Edit;
MessageTable.FieldByName('FieldName').AsString := sName;
MessageTable.Post;
The second…
![](../../users/profiles/6726928.webp)
userPro
- 59
- 2
- 11
-2
votes
1 answer
Refresh a DBGrid VB6
I'm trying to refresh my DBGrid after I've clicked a button to delete all the data. I've tried refresh with no results. I've tried Refresh on the DBGrid1 and on the Data object and even on the Form.
![](../../users/profiles/3653252.webp)
user3653252
- 23
- 6
-3
votes
1 answer
delphi DBGrid set focus on current cell
I have a dbgrid. I want to set a focus on the current CELL when i get error on datachanged event in my DataSource.
My code in the OndataChanged event is :
if (Field.Text = '') then
begin
…
![](../../users/profiles/6726928.webp)
userPro
- 59
- 2
- 11
-3
votes
1 answer
Delphi DbGrid order by ID
Am showing data from database in DBGrid and in my Command text. I want to display data in ascending but all time is descending i dont know whay.
In command text in Client DataSet i set: SELECT * FROM groups ORDER BY ID ASC but when i compaile and…
![](../../users/profiles/2040496.webp)
Ivan
- 4,530
- 11
- 42
- 69
-3
votes
1 answer
Automatic file saving from a DBGrid in Delphi - How Possible
I want to know whether there is a way to perform an automatic file saving without any dialogs.
I know how to manage with the JvDBGridCSVExport-Object the exportings and savings from a JvDBUltimGrid, but like I said I want savings without any Dialogs…
![](../../users/profiles/3133542.webp)
user3133542
- 1,551
- 4
- 17
- 35
-6
votes
1 answer
Deleting Records in a dbGrid Delphi 2010
I am looking for a solution to a rather serious problem I'm facing;
I want to delete a record in a dbGrid but when I click on my coded button and confirm 'Delete', I find no immediate results. In order to find the result of the deleted record, I…
![](../../users/profiles/7079576.webp)
André
- 1
- 2