I have a GridView that displays file sizes in a friendly format (1024B = 1KB, etc.) but, as expected, the built in sort sorts alphabetically (so 201KB comes before 21KB).
The actual size (in bytes) of each file is stored in a hidden column for other purposes, and I apologize if this should be easier than I'm making it, but is there a quick and dirty way to have the friendly size column sort using the value of the actual size column without having to refactor and create a custom data type for this?
Thanks.
The actual size (in bytes) of each file is stored in a hidden column for other purposes, and I apologize if this should be easier than I'm making it, but is there a quick and dirty way to have the friendly size column sort using the value of the actual size column without having to refactor and create a custom data type for this?
Thanks.