WebCombo.NET can be integrated with WebGrid.NET as an EditType. This integration can be specified using WebGrid.NET Designer or programmatically in runtime.
In this topic, you will learn how to integrate WebCombo to WebGrid.
To integrate WebCombo to WebGrid
- Drag and drop WebGrid control to the WebForm.
- Set AllowEdit property to true in WebGrid.NET Designer.
- Drag and drop WebCombo control to the WebForm.
- Bind the grid to Products table.
- Bind the combo using ISNetDataSource control to Suppliers table.
- Go to grid's properties and choose a SupplierID column from Columns collection.
- Set its EditType property to WebComboNET.
- Go to grid's SupplierID properties - ValueList then set the following properties:
Property Value DataMember Suppliers DataSource ISDataSource1 DataTextField CompanyName DataValueField SupplierID
- Set the WebComboID to wcCategories.
- Run the project.