2

I am having a StringGrid in Delphi 5 of fixed rows and Fixed Cols. But at run mode I am not able to select any row or any cell.

How and what is the property that allow me to make String Row or cell selectable.

Johan
  • 74,508
  • 24
  • 191
  • 319
PawanS
  • 7,033
  • 14
  • 43
  • 71
  • 3
    Are all rows and columns fixed? Why? Normally you don't want fixed rows and columns to be selectable. – jpfollenius Jun 06 '11 at 08:46
  • The term I used fixed in not in really fixed. At time of designing I gave as fixed but run time it will get populated. So don't go with that word but just the problem is with not selectable... – PawanS Jun 06 '11 at 12:20
  • Can you clarify that? What's the value of `FixedCols` and `FixedRows`? Please also show the code to populate the string grid. You might try to rework the question to make your problem clearer. – jpfollenius Jun 06 '11 at 13:34
  • Got the answer, problem with form.dfm setting – PawanS Jun 09 '11 at 14:55

2 Answers2

5

You cannot select fixed rows and columns and that is intended behaviour as this is normally not wanted. Is there any reason you have these rows and columns fixed?

jpfollenius
  • 16,456
  • 10
  • 90
  • 156
1

Take a look at the TStringGrid.Options property at design time. These have not changed much over the years and they are nearly all set to False. particularly: goEditing, goRowSelect.

Despatcher
  • 1,745
  • 12
  • 18