Forum > Pas2JS

twstringgrid properties

(1/1)

arirod:
hello friends!
an observation: TStringGrid class does not have the "published" Handle Class and Handle Id properties, important to improve the HTML presentation (CSS). I am, at the moment, inserting the properties when creating the form. suggestions?

PierceNg:
If the desired fields exist in a superclass, then the expedient approach is to subclass TStringGrid and publish those properties in your subclass.

Thaddy:
That is indeed the recommended way if you really want them published.
If the properties are public you can access them anyway from code.
If the properties are protected you can also write a type helper to make them public.(not published)

Navigation

[0] Message Index

Go to full version