fiogf49gjkf0d Option 1: One Column Sort
Easy enough for the user to click on the column header. Here's how to do it programmatically: Create a C# .Net Code Snippet and call this as an OnLoad action for the form.
namespace Sage.BusinessRules.CodeSnippets {
public static partial class MyFormNameEventHandlers {
public static void SortPublicationsStep( IMyFormName form, EventArgs args) {
System.Web.UI.WebControls.GridView grid = (System.Web.UI.WebControls.GridView)form.grdMyDataGridName.NativeControl; SortDirection direction = SortDirection.Descending; grid.Sort("MyFieldName", direction);
}
}
} |