﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebCombo - Combining data source and manual entries</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Combining-data-source-and-manual-entries/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Combining data source and manual entries</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Combining-data-source-and-manual-entries/</link><pubDate>Wed, 27 Jan 2010 00:27:26 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><description>&lt;p&gt;Hi Ellen,&lt;/p&gt;&lt;p&gt;I am sorry for the late response. Our internet connection was broken since past several days.&lt;/p&gt;
&lt;p&gt;Your second codes, seems more suitable with Unbound WebComboColumn. &lt;br /&gt;If you want to add unbound WebCombo column into bound WebCombo, you will need to do it at onIntializeLayout event. Then, assign text and value at each cell should be done at onIntializeRow event.&lt;/p&gt;
&lt;p&gt;Please look into my attached sample for further details. Hope this helps.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy &lt;/p&gt;</description></item><item><title>Combining data source and manual entries</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Combining-data-source-and-manual-entries/</link><pubDate>Fri, 22 Jan 2010 13:18:37 GMT</pubDate><dc:creator>ellpan</dc:creator><description>&lt;p&gt;Hi, I need to populate a webcombo using data source plus several manual entries. I cannot make both of them work: either manual entries are displayed or database entries, but not both. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;How to display both types of data?&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;1. This is my code for using data source:&lt;/p&gt;
&lt;p&gt;Private Sub wcboReportTechnique_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebCombo.DataSourceEventArgs) Handles wcboReportTechnique.InitializeDataSource&lt;br /&gt; Dim connStr As String = Application("ConnectionStringR").ToString()&lt;br /&gt; Dim cbo As New ComboBoxes&lt;br /&gt; e.DataSource = cbo.Technique(connStr)&lt;br /&gt; wcboReportTechnique.DataTextField = "Description"&lt;br /&gt; wcboReportTechnique.DataValueField = "TechniqueID"&lt;br /&gt; End Sub&lt;/p&gt;
&lt;p&gt;2. This is a code for manual entries:&lt;/p&gt;
&lt;p&gt;Dim wc As WebCombo = wcboReportTechnique&lt;br /&gt; Dim column As New WebComboColumn&lt;br /&gt; Dim row As New WebComboRow&lt;br /&gt; Dim cell As New WebComboCell&lt;br /&gt; cell.Text = "Any for Technique"&lt;br /&gt; cell.Value = "-1"&lt;br /&gt; wc.Columns.Add(column)&lt;br /&gt; wc.Rows.Add(row)&lt;br /&gt; row.Cells.Add(cell)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Thanks, Ellen&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>