zhyhero Posted July 3, 2020 Share Posted July 3, 2020 Columns are created dynamically. When one column.readonly set to true ,all other columns both readonly too . col := self.UniDBGrid1.Columns.Add; col.FieldName := 'Name'; col.Width := 120; col.ReadOnly := true; col.Title.Caption := 'Name'; UniDBGridTest1.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 4, 2020 Share Posted July 4, 2020 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]); <----- ... 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.