Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWEdit in a TIWGrid
#1
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?
Reply


Messages In This Thread
TIWEdit in a TIWGrid - by dave@corplogistics.co.nz - 10-23-2018, 09:14 PM
RE: TIWEdit in a TIWGrid - by kudzu - 10-26-2018, 08:36 PM
RE: TIWEdit in a TIWGrid - by kudzu - 10-27-2018, 02:43 PM
RE: TIWEdit in a TIWGrid - by kudzu - 10-28-2018, 01:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)