# Change Datagrid OnLoad to sort on Descending order?

**URL:** <https://forum.kirupa.com/t/change-datagrid-onload-to-sort-on-descending-order/288077>\
**Category:** flash\
**Created:** [May 11, 2009, 12:11am UTC](https://forum.kirupa.com/t/change-datagrid-onload-to-sort-on-descending-order/288077 "2009-05-11T00:11:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarmanje](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@jarmanje](https://forum.kirupa.com/u/jarmanje)\
**Post date:** [May 11, 2009, 12:11am UTC](https://forum.kirupa.com/t/change-datagrid-onload-to-sort-on-descending-order/288077/1 "2009-05-11T00:11:12Z")

</div>

Hi there, I built an ‘application from database’ using the wizard, and it’s pretty much perfect for how i want it.

I’ve been changing a few things and playing with it to be almost exactly how I need it to function for me. Couple questions I could use help with though!

How Can I change the sorting of a field when the datagrid first loads? I cannot find anything for it in the .as file generated… Only the functions for when a column is clicked.?

Also, I have doubleclicked enable = true, and it opens a php file. Got this working perfectly, but is it possible to make fields selectable? So that I can copy paste values from the datagrid?

And finally, is it easy to only display 100 results? But also be able to view the ‘older’ results?

thanks a lot for any help!
