Last post Nov 17, 2011 08:42 AM by sjnaughton
Nov 17, 2011 08:18 AM|Yannick86|LINK
In the FieldTemplate "ForeignKey" it's edit version "ForeignKey_Edit" uses the PopulateListControl method to fill the dropdownlist inside the Page_Load method, but I'm wondering in which way I could make the list so that it sorts on a certain column.
Keep in mind that it adds one line at the top "[Not Set]", which should always be the most top line.
Thanks in advance,
Nov 17, 2011 08:42 AM|sjnaughton|LINK
you need to use the DisplyColumn attribute on the FK table liek this
[DisplayColumn("Column to Show","Column to Sort on", true for sort descending)]