HI shalu,
datagrids are higly complex so I recommend to load the docs as a PDF here:
http://lessons.runrev.com/m/datagrid
and work through it a couple of time
To sort your datagrid via script, you can use the datagrid command:
SortDataByKey pArrayKey, pSortType, pDirection, pCaseSensitive
Do like this:
Code: Select all
...
## Sort your data by column "accepted date", sort by date, ascending, NOT case sensitive
dispatch "SortDataByKey" to grp "your datagrid here..." with "accepted date", "dateTime", "ascending", "false"
...
Best
Klaus