WebGrid provides AutoFit and AutoWidth features for all columns in WebGrid.
In this topic, you will learn how to apply AutoWidth to one of the column and AutoFit to other columns in WebGrid.
To set AutoWidth to one column and AutoFit to other columns in WebGrid
- Open WebGrid.NET Designer.
- In Advanced-WebGrid-Layout Settings, set AutoFitColumns to true.
- In Advanced-RootTable-Columns-Address, select Is Auto Width Column.
- Compile and run the WebForm. You will see something like following.
Tasks
How-to: Autofit all columns in WebGrid
Concepts
Automatic Columns Fitting
References
AutoFitColumns Property
IsAutoWidth Property
Other Resources
Walkthrough Topics
How-to Topics