Bind WebCombo with a DataTable as the DataSource

1 reply. Last post: September 12, 2013 3:28 AM by Hans Kristian
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi


I found this site with example:


http://www.intersoftpt.com/Support/WebCombo/KB/Various-WebCombo-Samples/


Bind WebCombo with a DataTable as the DataSource


WebCombo is bounded programmatically during runtime with a DataTable as the DataSource. The ComboMode configuration, DataTextField and DataValueField are all configured in InitializeLayout event.
Download Sample


but link download sample on this site not running correctly.

Opps...


We are sorry, but the page you are looking for cannot be found or has been removed from Intersoft Solutions web site.


Does anyone have an example program to connect a DataTable to WebCombo ?


I wrote a code that gives me control to the form, but when you try to display a list of records from a DataTable I get an error - the list of folders and files an application.


ISNet.WebUI.WebCombo.WebCombo wc = new ISNet.WebUI.WebCombo.WebCombo();
wc.ID = "1";
wc.DataTextField = "tekst";
wc.DataValueField = "wartosc";
wc.DataSource = datatable;
wc.DataBind();
wc.LayoutSettings.AlwaysShowAllRowsOnDropdown = true;
            wc.LayoutSettings.StatusBoxVisible = false;

 

In attach files screens, 

error occurs when you want to display a list of records




All times are GMT -5. The time now is 11:05 PM.
Previous Next