Derek

Thanks for the reply.  I believe you may have the answer !  I could make 
one control a label with no caption and the other control a command button.

I'll give it a try.

Thanks again

Paul

Derek Kalweit wrote:
>> I'm not sure if the subject really indicates what I am looking for, but
>> here goes
>>
>> I have a grid with several columns, one of which I want to contain a
>> control (e.g. a command button ?)  that is clickable (I want to put some
>> code in the click event of the control) and which is only visible
>> depending on a test or condition for the row.
>>
>> In other words the control in this column will be visible for some rows
>> and not for others.  Put another way I want some cells in a particular
>> column to be able to respond to a click event   I also need the sparse
>> setting for the column to be .F.
>>
>> Any ideas or suggestions ?
>>     
>
> Have you looked at the DynamicCurrentControl property on the column?
> You may be able to use this either to show one control or the other,
> or use one of the other Dynamic* Properties to set the property of the
> command button to visible or not(or enabled or not) in a method. This
> property gets evaluated for each row, so you simply reference
> grid.column.control.property = ... and it just works for each row.
>
>
>   



_______________________________________________
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