• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 612
  • Last Modified:

how to change DBGrid property dgColumnResize in runtime

How can I change the DBGrid property dgColumnResize in runtime?

The only property I can find is DBGrid.Options of the type TDBGridOptions, but I don't know how to change that type.

SPF
0
SPF
Asked:
SPF
  • 2
  • 2
1 Solution
 
kretzschmarCommented:
DBGrid.Options := DBGrid.Options + [dgColumnResize]; //to allow resizing

DBGrid.Options := DBGrid.Options - [dgColumnResize]; //to forbid resizing

hope thats it

meikl ;-)
0
 
SPFAuthor Commented:
yes, thx :)

it workes
0
 
SPFAuthor Commented:
yes, It works, thx :)
0
 
kretzschmarCommented:
glad to helped you :-))

i myself was a bit unsure,
because it was just from head

meikl ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now