On Wed, Dec 14, 2011 at 2:21 AM, Bob Sneidar <b...@twft.com> wrote:
> Hi all.
>
> I guess this would be a zryip question. It may be too difficult to attempt, 
> but I am going to give it a try anyway.
>
> I have a datagrid that already contains data. There are 3 modes to the form, 
> browse, edit and newrecord. In edit and newrecord mode I want to display a 
> checkbox in a column next to each row of the datagrid, but in browse mode I 
> don't want the checkbox to be displayed.
>
> Maybe I should back up a bit. I have 2 datagrids, one is a list of primary 
> records for the form, let's say reservations. The second can be anything 
> related to the primary data, say the guest, the rooms he has reserved, the 
> conference the reservation is attached to etc.
>
> In browse mode, I filter the alt list to only show the row data that 
> corresponds to the primary record. But when editing or creating a new record, 
> I display ALL the data, so the user can select from a list of records using a 
> checkbox in the datagrid. Get it?
>
> So I would like to be able to either add a checkbox on the fly (probably too 
> hard) or else have the checkbox column there by default, and then hide and 
> show it by changing the dgColumns as needed.
>
> Maybe I am over-thinking this, and what I really need to do is create a bunch 
> of buttons that correspond to the rows of the datagrid and kludge it.

Hi Bob and Pete,

As replied by Pete, a simple solution could consist to hide or show
the checkbox column.

The correct syntax is:

set the dgColumnIsVisible["myColumn"] of grp "MyDataGrid" to {true or false}



Best regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to