artem_niko Posted February 18, 2020 Share Posted February 18, 2020 Good afternoon! There are several columns in my table. I need to pin the width of some columns so that it is fixed on the specified columns. Unfortunately, the columns do not have a property Columns.MaxWidth (I hope that appears in the following assemblies). For example, there are 5 columns in my table. I need the width of 1,2,4 columns to be fixed and not to change with the property ForceFit:=True How can I do that? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 18, 2020 Share Posted February 18, 2020 2 hours ago, Артем said: Columns.MaxWidth Hello, You can try this approach I think: procedure TMainForm.UniFormReady(Sender: TObject); begin with UniDBGrid1 do begin // Columns[1] for example JSInterface.JSConfig('minWidth', [150], Columns[1].JSColumn); JSInterface.JSConfig('maxWidth', [150], Columns[1].JSColumn); end; end; 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted February 18, 2020 Author Share Posted February 18, 2020 14 minutes ago, Sherzod said: Hello, You can try this approach I think: procedure TMainForm.UniFormReady(Sender: TObject); begin with UniDBGrid1 do begin // Columns[1] for example JSInterface.JSConfig('minWidth', [150], Columns[1].JSColumn); JSInterface.JSConfig('maxWidth', [150], Columns[1].JSColumn); end; end; Thank's, working! 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.