I dont know if this might be something added to the eventual release but all that is needed to add initial sorting based on a single column is to add the following property to the Scaffold class. One can then set the property at Design time and affect the initial sort. Note: This will also allow you another way to check the sort column of the Gridview at run time.
/// <summary>
/// Lets you select the Column that you want to sort the grid portion of the scaffold upon
/// </summary>
/// <value>
/// <c>PKID</c>
/// </value>
[Bindable(true)]
[Category("Data")]
[Description("The Column that you want to sort the grid portion of the scaffold upon.")]
[DefaultValue("")]
public string GridOrderBy
{
get
{
if (ViewState[ORDER_BY] == null)
{
ViewState[ORDER_BY] = String.Empty;
}
return ViewState[ORDER_BY].ToString();
}
set { ViewState[ORDER_BY] = value; }
}