belo Posted August 13, 2013 Share Posted August 13, 2013 How to enable and disable a column in UniDBGrid at runtime? The propriendade Visible Column does not readjust when reactive. UniDBGrid1.Columns [1]. Visible Eduardo Quote Link to comment Share on other sites More sharing options...
eduardo.junqueira Posted August 13, 2013 Share Posted August 13, 2013 Oi Eduardo, tenta alem do visible, ajusta largura, o DBGRID do delphi7 acontecia mesma coisa. Quote Link to comment Share on other sites More sharing options...
belo Posted August 14, 2013 Author Share Posted August 14, 2013 Solved as follows: procedure TMyForm.UniCheckBox1Click(Sender: TObject); begin if TUniCheckBox(Sender).Checked then UniDBGrid1.Columns.Items[1].Visible := True else UniDBGrid1.Columns.Items[1].Visible := False; end; Thanks! Eduardo 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.