We can also create a ColumnSet when we used IList object bound to WebGrid.
In this topic, you will learn how to create ColumnSet when IList object bound to WebGrid.
To Create ColumnSet when IList object is bound to WebGrid :
- Bind WebGrid to IList DataSource.
- Right click on WebGrid instance to open WebGrid.Net Designer.
- Go to Advanced tab >> RootTable.
- In RowLayout Expandable panel choose ColumnSet and Click Design ColumnSet button.
- Set focus to the ColumnSet and set the Caption to Invoices.
- Set the ColumnSet's HeaderAlignment to Center.
- Click ColumnSet Designer and set like the picture below.
- Click OK >> Apply >> OK.
- Finally, the WebGrid will look like the following snapshot:
Tasks
Walkthrough: Creating ColumnSet layout in WebGrid
Walkthrough: Configuring multiline row in ColumnSet layout
How-to: Display a ColumnSet layout hierarchically
How-to: Create ColumnSet layout programmatically
Concepts
ColumnSets Layout
References
ColumnSetSettings Class
Other Resources
Walkthrough Topics
How-to Topics