Intersoft WebGrid Documentation
How-to: Sort Column Initially
See Also Send comments on this topic.

Glossary Item Box

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.NET 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.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.