Intersoft WebGrid Documentation
How-to: Allow user to freeze/unfreeze at runtime
See Also Send comments on this topic.

Glossary Item Box

WebGrid provides a method to freeze/unfreeze WebGrid column at runtime.

In this topic, you will learn how to set column freezing from designer.

To allow user to freeze/unfreeze at runtime

  1. Bind WebGrid to AccessDataSource (Using Customers table from NorthWind data source).
  2. Open WebGrid.NET SmartTag and check Allow Column Freezing.
  3. Open WebGrid.NET Designer - Layout Settings.
  4. Search for FreezePaneSettings.
  5. Set ShowInContextMenu to True.

Try to right click on WebGrid header (CompanyName) then click Freeze Pane.


The result is CustomerID and CompanyName columns will become freeze columns.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.