CodePudding user response:
You might as well use the List controls,To be enumerated all the files in the directory specified, then the "sorting method" take these files you asked for sorting, and then added to the List,
CodePudding user response:
Can use four columns MSHFlexGrid simulation resource manager right pane, display name, size, type and modification date,The MSHFlexGrid bound to a recordset object,
First search the directory, the files of the four information added to a temporary table, then the way the default sort by name query temporary table to the recordset object, refresh MSHFlexGrid,
When users click on the header, click on the modification date, for example, the corresponding event will trigger a new query statements (just the Order By clause), refresh MSHFlexGrid,
More complicated, and single and double click can also tell ascending and descending,