In WebCombo, you can add item from Server-side.
This topic will show you how to add item to WebCombo on Server-side.
To add item to unbound WebCombo from Server-side
- Drag ASP.NET Button to the page.
- Double click the ASP.NET button. Then, add the following code in Button1_Click event handler:
C# Copy Code WebComboRow row = new WebComboRow(); row.Cells.Add(new WebComboCell()); row.Cells[0].Text = "New Item"; WebCombo1.Rows.Add(row);
- Run the project.