DataGrid Allow Editing of Columns Only?

zryip theSlug zryip.theslug at gmail.com
Wed Aug 17 15:30:17 EDT 2011


On Wed, Aug 17, 2011 at 9:21 PM, Scott Rossi <scott at tactilemedia.com> wrote:
> Anyone know if it's possible to restrict editing of datagrid cells by
> column?
>
> I would like to allow cell editing for specific columns in a datagrid, while
> keeping data in other columns locked so that a double click in the locked
> column triggers a mouseDoubleUp message.  Is it possible to do this?

Hi Scott,

Use the dgColumnIsEditable property for locking / unlocking the cells
of a specific column.

Usage:
set the dgColumnIsEditable["pTheColumn"] of tMyDataGrid to pValue

Where:
- pTheColumn is the name of the column
- pValue is true (unlocked) or false (locked)


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




More information about the Use-livecode mailing list