Hi,

I have a form with a GRID to wicj I have to change the ColumnCount property
on user´s demand, however I need all columns have some specific code on the
Resize method .

First thing I tried was to use the WriteMethod method but it seems it will
be not useful because it works only at design time (I don't understand what
is called design time on this context, but it seems it will be not a
solution)

Second try was to crete a custom GRID class based on the normal VFP GRID
class, however I found that I would also need to create a custom COLUMN
class. at least because I am creating the custom class visually instead of
using code.
It seem to me there is some way to create the custom GRID class without
having to create also a Column custom class, but I don't know how

Thanks in advance for your comments

Oscar Taboada

Re: how to modify the method on run time? by Eric

Eric
Mon Sep 15 14:20:47 CDT 2003

Hello, Oscar!
You wrote on Mon, 15 Sep 2003 14:01:19 -0500:

OT> I have a form with a GRID to wicj I have to change the ColumnCount
OT> property on user´s demand, however I need all columns have some
OT> specific code on the Resize method .

OT> First thing I tried was to use the WriteMethod method but it seems it
OT> will be not useful because it works only at design time (I don't
OT> understand what is called design time on this context, but it seems it
OT> will be not a solution)

OT> Second try was to crete a custom GRID class based on the normal VFP
OT> GRID class, however I found that I would also need to create a custom
OT> COLUMN class. at least because I am creating the custom class visually
OT> instead of using code.
OT> It seem to me there is some way to create the custom GRID class
OT> without having to create also a Column custom class, but I don't know
OT> how

OT> Thanks in advance for your comments

OT> Oscar Taboada

You didn't mention the version of VFP you're using. In VFP8, you can use
BINDEVENTS().
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8



where is the column foundation class? by Oscar

Oscar
Wed Sep 17 10:28:54 CDT 2003

Hi,

I am working with VFP 6.0 and trying to create a new GRID class or subclass
such that when a new column is added at run time, the new column control
and/or the header or text controls have specific code inside some of the
events.

I have a found in the VFP foundation class libraries a class named GRID, but
not a column one, and inside the GRID class there is no place where I can
specify certain code to be inserted

I have been adviced that VFP 8 has an option to BIND events, however I can
not upgrade right now to a new version. Is it possible to do what I am
trying to do? How?

Thanks in advance for your comments

Oscar Taboada