Avatar of Roger Alcindor
Roger Alcindor
 asked on

StringGrid scrollbars not visible with DefaultDrawing set to false

I am writing a Windows 32 application that uses a VCL StringGrid component using Embarcadero C++ Builder XE2.
I have set the StringGrid component DefaultDrawing property to false and the string grid is displaying its data using code placed in the OnDrawCell event handler.
For conditions when the number of rows in the string grid exceed the available space in the screen grid, I need to use a vertical scroll bar to allow navigation to "off screen" data rows. I have set the ScrollBars property in the StringGrid to ssVertical but no scroll bar appears and "off screen" data cannot be viewed.
How do I get vertical scroll bars in this situation, bearing in mind that I am using C++ Builder ?
Delphi

Avatar of undefined
Last Comment
Roger Alcindor

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Geert G

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Roger Alcindor

ASKER
Very useful information.
In fact the problem turned out to be one of my own making; in my code I had set the Grid height according to the required number of rows and therefore the vertical scroll bar was not showing.
Thanks for your comment,

Roger
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy