> I've a really bad problem. I want some columns in
my string grid
> (e.g.
> 2nd, and 5th columns) to be read only. I don't know how to do it.
Any
> suggestions?
----------
Use the OnSelectCell event.
ie.
Procedure Tform.YourGridOnSelectCell(Sender: TObject; Col, Row: Longint;
var CanSelect: Boolean)
BEGIN
if (col = 2) or (col=5) then YourGrid.options :=
YourGrid.options-[goEditing]
else
YourGrid.options :=
YourGrid.options+[goEditing];
END;