In WebGrid.NET, you can set WebGridCell and Header as MultiLine and Word Wrap.
In this topic, you will learn how to set MultiLine and Word Wrap.
To set MultiLine and Word Wrap
- Open WebGrid.NET Designer.
- In Advanced-WebGrid-Layout Settings, set HeaderStyle-Height to Empty.
- Set the Advanced-WebGrid-LayoutSettings-RowHeightDefault to -1px.
- Go to Advanced-RootTable, then set Columns-CompanyName-AllowMultiline to True.
- Then set CellStyle-Wrap to True.
- And set HeaderStyle-Wrap to True.
- Compile and Run the project.
Tasks
How-to: Set column's horizontal and vertical alignment
How-to: Change the ForeColor of all odd rows
How-to: Change the ForeColor of a cell based on a specific condition
Concepts
Automatic Style Merging
References
WebGridCell Class
HeaderStyle Property
RowHeightDefault Property
AllowMultiLine Property
CellStyle Property
HeaderStyle Property
Other Resources
Walkthrough Topics
How-to Topics