Michael Savage wrote on 2012-08-22: 
>  I know how to add a checkbox to a column in a grid in code. However I do
>  not know if I can write code to the valid event to put my validation
>  code in it. I thought there was a way to drag and drop a checkbox in a
>  column in the development envirnment.
>  
>  Is this correct? If so how to do it?

Michael,

I didn't know you couldn't drag the custom checkbox from the project manager
to the grid. Now I do.
You can change the toolbar to show the class library the checkbox is
contained in. This will allow you to get it in there with how Fred described
the process.

You could do it with code via the command window too.

Place your mouse over the grid, column1 area. (below the header)
In the command window enter:

    OO = sys(1270)

OO is now the column object.

    OO.NewObject("checkbox", "yourcheckboxclass", "yourclasslib")
    Release OO

There's so many ways to do something in VFP. 

Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to