WebGrid provides an AutoFit feature for all columns in WebGrid.
In this topic, you will learn how to apply AutoFit to all column in WebGrid.
To set AutoFit to all columns in WebGrid
- Open WebGrid.NET Designer.
- In Advanced-WebGrid-Layout Settings, set AutoFitColumns to true.
- Compile and run the WebForm.
Tasks
How-to: Set one of the columns as AutoWidth while the others fit the WebGrid
References
AutoFitColumns Property
Other Resources
Walkthrough Topics
How-to Topics