Show/Hide Controls in wwLayoutGrid

Comments

1 comment

  • Roy Woll

    I think you can just set the CellAttributes property. For instance our main demo does something like this

      if (CellAttributes.Control=lblNewFeatures) or
         (CellAttributes.Control=lblChildNewFeatures) then
      begin
        if not (CellAttributes.GetValue('NewFeatures').AsBoolean) then
          CellAttributes.DoDefaultDrawContents:=false;
      end;

     

    This prevents the painting of the control for each row (except the active when readonly=false)

    This works well if your ReadOnly is true for the grid. However if readonly is false, then the actual control is painted for the row so you may also need to set the visible property of the actual control in the event just like you are already doing.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk