datagrid forms and pre-defined sorting sorting

Monte Goulding monte at sweattechnologies.com
Wed Feb 2 20:38:25 EST 2011


> There's a SortDataGridColumn message that is sent to the datagrid when the user clicks on a column to sort it.  

I think that's only for tables.

> Depending on the source of your data, you could sort it before loading it into the datagrid.  Most of the data in my datagrids comes form SQL databases so I sort it while selecting it from the db.

Unfortunately that doesn't cover changes to the datagrid data unless I reload all the dgdata when I add add or update a record although that probably would be faster than the 3 datagrid refreshes anyway.

Cheers

Monte



More information about the use-livecode mailing list