Jump to content

column.readonly=true auto apply to all other columns


zhyhero

Recommended Posts

13 hours ago, zhyhero said:

When one column.readonly set to true ,all other columns both readonly  too .

Hello,

We will check it.

As a workaround use this approach:

  ...
  col := self.UniDBGrid1.Columns.Add;
  col.FieldName := 'BData';
  col.Width := 80;
  col.ReadOnly := true;
  col.Title.Caption := 'BData';

  // append data
  self.ClientDataSet1.AppendRecord(['Data1', 1, 1.1, true]);
  self.ClientDataSet1.AppendRecord(['Data2', 2, 2.2, false]);
  self.ClientDataSet1.AppendRecord(['Data3', 3, 3.3, true]);
  self.ClientDataSet1.AppendRecord(['Data4', 4, 4.4, false]);
  self.ClientDataSet1.First;

  Self.UniDBGrid1.JSInterface.JSAssign('rdonly', [Self.UniDBGrid1.ReadOnly]); <-----
  ...

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...