Intersoft Support Center

Sort Column Initially

WebGrid provides feature to sort column initially from designer.

In this topic, you will learn how to sort column initially.

To sort column initially

  1. Bind WebGrid to AccessDataSource (Using Customers table from NorthWind data source).
  2. Right click on WebGrid and choose WebGrid Designer.
  3. Select Allow Sorting in Popular Settings section.
  4. Go to Advanced Tab. Expand RootTable >> SortColumns.
  5. Add a column. Set ColumnMember to ContactName and SortOrder to Ascending.
  6. Run the project and WebGrid will sort ContactName column initially.
Previous Next