Jump to content


Photo

Set Checkboxcolumn at runtime?


  • Please log in to reply
No replies to this topic

#1 Frank

Frank
  • Members
  • 30 posts

Posted 22 August 2018 - 12:13 PM

Hello,

 

in my program i set a checkboxcolumn to "checked" if another checkboxcolumn in the same grid is checked:

procedure TfrmSampleCreate.colAllRoomsCheckedChanged(Sender: TObject; ACol,
  ARow: Integer);
begin
  if (gvBuild.CellBy['colAllRooms', gvBuild.SelectedRow].AsBoolean) then
    begin
      gvBuild.CellBy['colOK', gvBuild.SelectedRow].AsBoolean := True;
    end;
end;

This worked as "onChange"-Event in Nextgrid v4 without problems.

Debugging shows now, that the line with 'colOK' is processed, but in the form
the 'colOK'-Column is not checked.

Is there any option in the grid/row i have to set?

Best Regards
Frank






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users