Intersoft WebGrid Documentation
Walkthrough: Using WebGrid in unbound mode
See Also Send comments on this topic.
Intersoft WebGrid > Getting Started > Samples and Walkthroughs > WebGrid Walkthroughs > Walkthrough: Using WebGrid in unbound mode

Glossary Item Box

This walkthrough shows you how to use WebGrid in unbound mode for displaying static columns and rows.

During this walkthrough, you will learn how to do the following:

 Prerequisites

In order to complete this walkthrough, you will need the following:

  • Visual Studio 2005 Application.

 Step-By-Step Instructions

To Create WebGrid in Unbound Mode

  1. Launch Visual Studio.NET 2005.
  2. Click on File menu, then select New and click Web Site.
  3. Select ASP.NET Web Site in the Template box and set Location to HTTP.
  4. Named the Web Site and click OK.
  5. Right-click on Project's name and select Add New Item.
  6. Select Intersoft AppForm in the My Templates box and named it as UnboundMode.aspx.
  7. Create new instance of WebGrid by dragging it from Toolbox to the WebForm.
  8. Right click on the WebGrid and click on WebGrid.NET Designer.
  9. The designer window appears, expand RootTable and select Columns node.
  10. Click Add three times to add three new columns.
  11. Select Column0 and set its Caption to "Item Name", Column1 to "Discount" and Column2 to "Price".
  12. Click on Rows node and click Add three times to add three new rows.
  13. Select Rows0 and click on ellipsis button of Cells to open Cells Editor. You will see three cells, which correspond to three columns you created in step 10.
  14. Click on Cell0 and set its Text to "Item1", Cell1 Text to "0", Cell2 Text to "100".
  15. Select Rows1 and repeat step 13 and 14. Set the Text of each cell to "Item2", "5", and "200".
  16. Select Rows2 and repeat step 13 and 14. Set the Text of each cell to "Item3", "10" and "500".
  17. Click OK.
  18. Save the WebForm and view in browser.
  19. The WebGrid will look like following.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.