Add ComboBox to column:
Grid.AddComboBox(Col,Row);
Remove ComboBox and set column to ReadOnly:
Grid.RemoveComboBox(Col,Row);
Grid.Columns[Col].ReadOnly:=true;
Click into column and find an editable cell -> bug...
Add ComboBox to column:
Grid.AddComboBox(Col,Row);
Remove ComboBox and set column to ReadOnly:
Grid.RemoveComboBox(Col,Row);
Grid.Columns[Col].ReadOnly:=true;
Click into column and find an editable cell -> bug...
Hi,
Can't really reproduce this here. Also, what happens if you use BeginUpdate / EndUpdate?
Use code like this:
Items:=TStringList.Create;
Items.Add('Test');
GridTest.BeginUpdate;
GridTest.AddComboBox(0,1,Items);
GridTest.EndUpdate;
GridTest.BeginUpdate;
GridTest.RemoveComboBox(0,1);
GridTest.EndUpdate;
GridTest.BeginUpdate;
GridTest.Columns[0].ReadOnly:=true;
GridTest.EndUpdate;
and click into cell(0,1) - cursor is visible ...
Hi,
With the call AddComboBox, the cell has been flagged with cell specific properties. Meaning, at that point it takes over the ReadOnly state of the cell, not the column. In TTMSFNCDataGrid we have this covered with a whole new cell property priority system, in TTMSFNCGrid this isn't the case. We'll investigate what we can do, but for now, you will need to set
GridTest.ReadOnlys[0, 1] := True;
works fine...