DataGrid Allow Editing of Columns Only?

Scott Rossi scott at tactilemedia.com
Wed Aug 17 17:52:21 EDT 2011


Thank you again, Slug.  :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design



Recently, zryip theSlug wrote:

> On Wed, Aug 17, 2011 at 11:17 PM, Scott Rossi <scott at tactilemedia.com> wrote:
>> Another DG question...
> 
> So another answer. 8)
> 
>> Any way to disable sorting of a column or all columns?  Ideally I would like
>> to prevent the sort arrow from showing up at all in the column header, but I
>> can live with it if necessary.
> 
> It exists indeed a way for doing that.
> 
> Place this handler in the datagrid group's script:
> 
> on SortDataGridColumn pColumn
> end SortDataGridColumn
> 
> Remaining it empty will disable the sorting capability of the datagrid.
> 
> For disable sorting of a specific column, just don't pass the
> SortDataGridColumn message for it.
> Example for a column "Name":
> 
> on SortDataGridColumn pColumn
>   if pColumn is "Name"
>     --- doNothing
>   else
>     pass SortDataGridColumn
>   end if
> end SortDataGridColumn
> 
> 
> Best regards,








More information about the use-livecode mailing list