-1

I'm using C++Builder and I can't select multiple rows of my TStringGrid with the mouse.

Is there a particular property of TStringGrid that enable this?

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
  • 4
    Hello and welcome to StackOverflow. Please take some time to read the help page, especially the sections named ["What topics can I ask about here?"](http://stackoverflow.com/help/on-topic) and ["What types of questions should I avoid asking?"](http://stackoverflow.com/help/dont-ask). And more importantly, please read [the Stack Overflow question checklist](http://meta.stackexchange.com/q/156810/204922). You might also want to learn about [Minimal, Complete, and Verifiable Examples](http://stackoverflow.com/help/mcve). – Clijsters Mar 20 '18 at 15:31

1 Answers1

0

Enable the goRangeSelect and goRowSelect flags in the TStringGrid::Options property.

goRangeSelect
Users can select ranges of cells at one time. goRangeSelect is ignored if Options includes goEditing.

goRowSelect
Entire rows are selected rather than individual cells. If goRowSelect is included in Options, goAlwaysShowEditor has no effect.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
  • Once I have selected multiple rows I need to sort them, but it sorts only the last selected row. Do you know a way to move multiple rows together ? –  Mar 21 '18 at 07:34
  • To move them I need a fixed col –  Mar 21 '18 at 07:45
  • If you are having trouble moving/sorting rows, please edit your question to show the code you are trying to use. – Remy Lebeau Mar 21 '18 at 09:18