Page 1 of 1

CRDBGrid with property Scrollbars(ssNone,ssHorizontal,ssVertical,ssBoth)

Posted: Mon 23 Jul 2007 22:28
by quadrophenia
Sorry for asking a question about CDDBGrid as I learned that it is not supported anymore. Although I use this component very often.

the only very important thing for me missing is the public property Scrollbars.

My experience with component-writing is little, so the source-code does not help me to integrate easily a property "Scrollbars" (like in TMemo) into it.
For a real programmer it would take almost no-time i am sure.

Is there someone out there who already extended the CRDBGrid - or give me a literature reference - or directly a code snippet?

Thanx

Posted: Tue 24 Jul 2007 08:54
by Antaeus
This property persists in DBGrids, but it is protected. You can try to add the declaration of ScrollBars in the public or published sections of TCRDBGrid to be able to change its value. However I do not think that this is a good solution, as changing a value of this internal property manually may lead to unpredictable behaviour of the grid.

Unpredictable

Posted: Tue 24 Jul 2007 09:16
by quadrophenia
With my little knowhow about component-development I exactly tried you solution. Unfortunately as you assume the result is strange and unpredictable.
However thank you for the answer.