Tokay Posted September 12, 2021 Share Posted September 12, 2021 I've used the code: procedure TForm18.UniStringGrid1SelectCell(Sender: TObject; ACol, ARow: integer; var CanSelect: boolean); begin CanSelect := ACol = 1; end; but it does not work corectly because this event does not fired on the fixed columns. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 12, 2021 Share Posted September 12, 2021 9 hours ago, Tokay said: but it does not work corectly because this event does not fired on the fixed columns. Hello, If you don't use fixed columns, does it work? Quote Link to comment Share on other sites More sharing options...
Tokay Posted September 12, 2021 Author Share Posted September 12, 2021 Yes it does, but CanSelect = False unfortunately does nothing: the cell is sucessfully selected. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 12, 2021 Share Posted September 12, 2021 15 minutes ago, Tokay said: Yes it does, but CanSelect = False unfortunately does nothing: the cell is sucessfully selected. You can use this approach as a workaround: Quote Link to comment Share on other sites More sharing options...
Tokay Posted September 12, 2021 Author Share Posted September 12, 2021 Thank you, your post helps. 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.