I think the easiest way would be to change the dgvisible property of the checkbox column to true or false depending on the requirements.
On Tue, Dec 13, 2011 at 5:21 PM, 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. > > Bob > > > > _______________________________________________ > 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 > > -- Pete Molly's Revenge <http://www.mollysrevenge.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