Hello,
Have a grid where one of the columns contain a money amount. This amount can be positive or negative.
I have the Editor value set to edCustom and the EditLink value set to a TMoneyEditLink Component.
Problem 1: I am unable to type a negative value into the column.
Problem 2: The use of the 10 key to do math does not work.
I was hoping the column would function like a TAdvMoneyEdit with the EditType set to etMoney but it does not.
Any ideas?
Chad
I have retested this here but could not see a problem. Test code on default grid:
procedure TForm4.AdvStringGrid1GetEditorType(Sender: TObject; ACol,
ARow: Integer; var AEditor: TEditorType);
begin
AEditor := edCustom;
AdvStringGrid1.EditLink := MoneyEditLink1;
end;
procedure TForm4.FormCreate(Sender: TObject);
begin
advstringgrid1.Options := advstringgrid1.Options + [goEditing];
end;
Type in some numeric value in the control and then press '-' and you'll see the negative sign. If you press '-' again, it will toggle the negative sign. I'm not sure what you mean with "the 10 key to do the math..." will not work?
Bruno,
Thank you for the reply.
Sorry, I failed to mention I am working with AdvColumnGrid.
By ten key I mean when you use your keyboard to do math. Like the key strokes "2 " "+" "2" "Enter" gets you 4 in the cell.
Chad
The key sequence to do this is:
type key 2
type key +
type key 2
type key =
Bruno,
I can provide you a sample project with only a AdvColumnGrid and a AdvMoneyEditLink on it and you will see it does not accept a "-" negative sign or accept key sequence math.
Chad
tms_Nancy
(tms Nancy)
June 10, 2013, 10:45am
6
You can send your sample project to help@tmssoftware.com .
Bruno,
Thank you for this. I have just emailed a sample project.
Chad