Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How-to on sub-classing
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00403871
Message ID:
00403990
Views:
16
>OIC. I've never used that particular feature. But you're right, if Bruce sets that. Unfortunately, it doesn't work as you'd like to. For example, create a grid sub-class, set the read-only property to .T.. Set the Multiple option to point to the grid. Create a form add a table to the DE. Then drag and drop the table onto the form. OK, you've got the on the table, now run the form. You can modify the data displayed. However, if you drag and drop the same grid from the controls toolbar onto the grid and set the record source, you can't.

I think what's happening here is that the ColumnCount gets set from the mapped class, so Columns get added at design time, so they don't get set ReadOnly by default.
The same thing can occur from the toolbar. Drop the grid from the controls toolbar, set the RecordSource and the ColumnCount and column(s) ControlSource. You'll see the same thing as if you dragged from the DE.
In either case, you have to change the grid.ReadOnly then reset it to default, then the columns will be read only. Same with grid font settings.
Anything with grids where settings which should ripple down to the columns (ReadOnly, Font settings, e.g.) can be a PITA to deal with, anyway.

> I haven't found what else doesn't work as expect, but this one's enough to keep me from using it.

Oh, c'mon. That's like saying you don't like [insert group name] because of [most annoying of that group]. <g>
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform