I do not think there is a way to disable the ability to sort by column. What 
you can do is disable the datagrid group itself which will prevent a user from 
interacting with the datagrid at all, including making a new selection. You 
also will not be able to scroll, so that may be an issue. 

You may be able to dig in and try to disable the column header group, but I 
don’t know what the consequences of that would be. 

But what would be the harm in sorting? 

Bob S


> On Mar 4, 2025, at 10:47 AM, jbv via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Le 2025-03-04 13:07, Klaus major-k via use-livecode a écrit :
>> ...
>> set the dgProp["sort by column"] of group "your DG here..." to empty
>> ...
> Well, actually it doesn't work as expected : the columns aren't sorted
> when filled with data, but users can still click on column headers and
> sort the data. And that's what I'd like to hinder : clicking on the
> column headers shoudn't do anything. I just need the datagrid to
> display data in a certain order for checking before saving.
> 
> jbv
> 
> _______________________________________________
> 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

_______________________________________________
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