I put a TWebStringGrid on a form and I clicked to create an OnDrawCell handler. I got this compiler error:
[Error] frmWEBTest1Main.pas(402): identifier not found "TRect"
System.Types to the upper uses clause and it went away.
But then this error appeared:
[Error] frmWEBTest1Main.pas(404): identifier not found "TGridDrawState"
I tried defining type
TGridDrawState = integer; but it throws a bunch of typing errors at run-time. So I changed it to this (from the Help file):
TGridDrawState = set of (gdSelected, gdFocused, gdFixed, gdRowSelected, gdHotTrack, gdPressed);
That brought up something totally different. See the screenshot below.
Usually when you add visual components to a form, they automatically add the necessary units to the uses clause.