Intersoft WebGrid Documentation
How-to: Set column's horizontal and vertical alignment
See Also Send comments on this topic.

Glossary Item Box

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

  1. Open WebGrid.NET Designer.
  2. In Quick Start-User Interface-Miscellaneous section, set Default Row Height to 50px.
  3. In Advanced-RootTable-Columns-Address, set VerticalAlign to Top.
  4. In Advanced-RootTable-Columns-City, set HorizontalAlign to Right.
  5. In Advanced-RootTable-Columns-CompanyName, set HorizontalAlign to Right and VerticalAlign to Top.
  6. Compile and run the WebForm.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.