Home > Back-end >  DbGridEH cell calculation, and take any value in the cell
DbGridEH cell calculation, and take any value in the cell

Time:09-22



Pictured above, want to realize the function of the
1, in each row [price] cell value of the input, enter, automatically calculate the [rent], [gross rent]

2, how to take a certain line column value in the cell?

Thank you,

CodePudding user response:

General situation is to set up a button, the mouse specified DBgridEh line, through the button, edit values calculated total rent,

Or through a DBEdit, in the event of an OnChang, edit values calculated total rent,

If in the event of DBGriddEh, has the certain difficulty, the event will appear in the set is not comprehensive,

CodePudding user response:



Take a certain line column value in the cell how to do?

I want to put the above rent used below the rent,

CodePudding user response:

Ha ha, I want to know now is how to take any value in the cell,

CodePudding user response:

Mobile record, access to the corresponding field is the corresponding value in the table, no?

CodePudding user response:

The
reference 3 floor XXZQBXXZQB response:
ha ha, I want to know now is how to take any value in the cell,

Self. DBGridEh1. Fields [0]. AsString the mouse over the first value

Refer to the URL http://bbs.csdn.net/topics/310104438
To switch to DBGridEh
First positioning line, use DBGridEh Row properties, such as positioning line 5: DBGridEh. Row:=5;
Positioning column, again by DBGridEh field attribute values, such as 3 columns: DBGridEh. Fields. [2] AsString

Reference URL2http://www.yourdelphi.com/topic_344520_8b27.htm
  • Related