Intersoft WebGrid Documentation
Walkthrough: Using MultiLine TextBox
See Also Send comments on this topic.

Glossary Item Box

This walkthrough shows you how to set MultiLine TextBox as WebGridColumn's EditType.

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

 Prerequisites

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

  • Access to the Microsoft Access Northwind database.
  • Visual Studio 2003 Application.

 Step-By-Step Instructions

To create new web application and set ContactName column EditType to MultiLine TextBox.

  1. Bind WebGrid to AccessDataSource.
  2. Set WebGrid's properties AllowEdit to true.

Using designer

  1. Right click on WebGrid and click on WebGrid.Net Designer.
  2. Go to Advanced tab >> RootTable >> Columns
  3. Set focus to address's column and find Editing Expandable panel.
  4. Change TextBox to MultiLine TextBox
  5. Click Apply >> OK
  6. The picture will look like following:


Using programmatic runtime

  1. Add InitializeLayout event handler and put the following code inside it.

    C# Copy Code
    WebGrid1.RootTable.Columns.GetNamedItem("Address").EditType = ISNet.WebUI.WebGrid.EditType.MultilineTextbox;     
    

  2. Finally, compile and run the project. The WebForm will be displayed like the following snapshot:

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.