10-23-2018, 09:14 PM
IntraWeb v14.2.3 newbie.
I add an edit into a grid:
{Grid: TIWGrid}
var
Edit: TIWEdit ;
begin
Edit := TIWEdit.Create(Self) ;
Edit.Parent := Self ;
Edit.Alignment := taRightJustify ;
Edit.Editable := True ;
Edit.Text := '1' ;
Edit.OnAsyncExit := edtAsyncExit ;
Grid.Cell[1,2].Control := Edit ;
end ;
This puts the edit in the grid in the (sort of) correct place, I then edit the value in the grid (change 1 to 2), if I then add a new row the edit goes back to it's original value (1). How do I get this to work?
I add an edit into a grid:
{Grid: TIWGrid}
var
Edit: TIWEdit ;
begin
Edit := TIWEdit.Create(Self) ;
Edit.Parent := Self ;
Edit.Alignment := taRightJustify ;
Edit.Editable := True ;
Edit.Text := '1' ;
Edit.OnAsyncExit := edtAsyncExit ;
Grid.Cell[1,2].Control := Edit ;
end ;
This puts the edit in the grid in the (sort of) correct place, I then edit the value in the grid (change 1 to 2), if I then add a new row the edit goes back to it's original value (1). How do I get this to work?