Intersoft WebCombo Documentation
How-to: Create unbound WebCombo using PopupateUnboundData method
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Unbound Mode How-to Topics > How-to: Create unbound WebCombo using PopupateUnboundData method

Glossary Item Box

In WebCombo, you can create unbound WebCombo using PopulateUnboundData method. 

This topic will show you how to use PopulateUnboundData method.

To create unbound WebCombo using PopulateUnboundData method

  1. Drag WebCombo instance from ToolBox to WebForm.
  2. In Page_Load event handler, add the following code :

    C# Copy ImageCopy Code
    WebCombo1.DataMember = "Customers";
    WebCombo1.DataTextField = "ContactName";
    WebCombo1.DataValueField = "CustomerID";
    
    WebCombo1.LayoutSettings.StatusBoxVisible = false;
    
    WebCombo1.Columns.Add("ContactName");
    WebCombo1.Columns.Add("CustomerID");
    
    dsNorthwind.CustomersDataTable dt = new dsNorthwind.CustomersDataTable();
    dsNorthwindTableAdapters.CustomersTableAdapter da = new dsNorthwindTableAdapters.CustomersTableAdapter();
    da.Fill(dt);
    WebCombo1.PopulateUnboundData(dt, false);
    

  3. Run the project.

See Also