This walkthrough shows you how to set MultiLine TextBox as WebGridColumn's EditType.
During this walkthrough, you will learn how to do the following :
- Change the WebGridColumn's EditType to MultiLine TextBox using either designer or programmatic runtime.
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.
- Bind WebGrid to AccessDataSource.
- Set WebGrid's properties AllowEdit to true.
Using designer
- Right click on WebGrid and click on WebGrid.Net Designer.
- Go to Advanced tab >> RootTable >> Columns
- Set focus to address's column and find Editing Expandable panel.
- Change TextBox to MultiLine TextBox
- Click Apply >> OK
- The picture will look like following:
Using programmatic runtime
- 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;
- Finally, compile and run the project. The WebForm will be displayed like the following snapshot:
Tasks
Walkthrough: Using CheckBox
Walkthrough: Using Calendar DropDown
Walkthrough: Using Calendar Combo
How-to: Perform Bulk Update on a Button Click event
How-to: Use DropDownList as EditType of a WebGridColumn
References
AllowEdit Property
EditType Property
Other Resources
Walkthrough Topics
How-to Topics