X
X
Xvir432019-10-02 19:02:06
css
Xvir43, 2019-10-02 19:02:06

How in delphi to add a new row to dbgrid with one field already filled?

Please tell me how to add a row to dbgrid with filled field.
for example, the structure of a table.:
Id param count
Only
Id count
Dbgrid is displayed in the grid. datasource. dataset. Append
Added an empty string
How to immediately fill in param if it is not displayed in the grid?
I use dbgrid and firedac
I hope I explained the rules.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Anton Spirin, 2018-06-12
@rockon404

The picture is part of the page, not the menu.

body { 
  background-image: url(http://example.com/image.png);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #999;
}

H
Hemul GM, 2019-10-03
@Xvir43

After append, you can access fields (fields) and assign values

K
Konstantin Tsvetkov, 2019-10-02
@tsklab

Either use a separate form for all fields, or make a DBEdit next to the DBGrid for all fields, or add the column you need to the DBGrid.

E
evgeniy_lm, 2019-10-03
@evgeniy_lm

dbgrid is a rather dumb thing, I realized very quickly that it can only be used to display records. For editing and adding records, I use a separate dialog box with DBEdit fields. Once, for fun, I made it so that when you double-click on top of a cell, a DBEdit is created where you can change the value. But in that case, it was a special table with a fixed number of records and calculated fields were displayed in it, and the real ones associated with them were edited.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question