WebGrid provides to set horizontal and vertical alignment for the column's in WebGrid.
In this topic, you will learn how to apply horizontal and vertical alignment in WebGrid.
To set AutoWidth to one column and AutoFit to other columns in WebGrid
- Open WebGrid.NET Designer.
- In Quick Start-User Interface-Miscellaneous section, set Default Row Height to 50px.
- In Advanced-RootTable-Columns-Address, set VerticalAlign to Top.
- In Advanced-RootTable-Columns-City, set HorizontalAlign to Right.
- In Advanced-RootTable-Columns-CompanyName, set HorizontalAlign to Right and VerticalAlign to Top.
- Compile and run the WebForm.