Hello,
I would like to determine which column, if any, is currently selected in a datagrid. That is, what column is the current sorting column.
Looking at the LiveCode Data Grid PDF did not bring up much (I might have overlooked something).
Thank you for your help.
Olli.
Determine selected column of datagrid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Determine selected column of datagrid
After scrutinizing the datagrid documentation, I found the table property that contains the column used for sorting.
this here
put the dgProps["sort by column"] of group "Data Grid" into lCurrentlySelectedColumn
will get you the name of the column used for sorting, and thus the one of which the user clicked the header.
this here
put the dgProps["sort by column"] of group "Data Grid" into lCurrentlySelectedColumn
will get you the name of the column used for sorting, and thus the one of which the user clicked the header.