﻿<?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 - Bound WebCombo with Data Object as Value</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Bound-WebCombo-with-Data-Object-as-Value/</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>Bound WebCombo with Data Object as Value</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Bound-WebCombo-with-Data-Object-as-Value/</link><pubDate>Thu, 15 Apr 2010 03:06:31 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Currently it is not possible to get the reference to LINQ object from WebCombo. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you need to lookup another column which is not defined in the Text or Value property you could try using the Rows property of WebCombo, however this will return a DataRow object.&lt;/p&gt;
&lt;p&gt;Attached is a simple demonstration of such technique. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Bound WebCombo with Data Object as Value</title><link>http://www.intersoftsolutions.com/Community/WebCombo/Bound-WebCombo-with-Data-Object-as-Value/</link><pubDate>Wed, 14 Apr 2010 08:17:36 GMT</pubDate><dc:creator>FabianoM</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I have a Webcombo that is bound to an ObjectDataSource which returns a collection of a dataset. for example of the type Person. Here's a snippet: &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;    public class Person&lt;br /&gt;    {&lt;br /&gt;        private Guid personId;&lt;br /&gt;        private string lastname;&lt;br /&gt;        &lt;br /&gt;        [DataMember]&lt;br /&gt;        public Guid Id&lt;br /&gt;        {&lt;br /&gt;            get { return personId; }&lt;br /&gt;            protected set { personId = value; }&lt;br /&gt;&lt;br /&gt;        [DataMember]&lt;br /&gt;        public string Lastname&lt;br /&gt;        {&lt;br /&gt;            get { return lastname; }&lt;br /&gt;            set { lastname = value; }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;    }&lt;/pre&gt;
&lt;p&gt;The ObjectDataSource retrieves a list of Persons with a WCF-Service:&lt;/p&gt;&lt;pre&gt;public IList&amp;lt;Person&amp;gt; GetPersons();&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;When I bind a WebCombo to the DataSource I can select the Display Member (Property Lastname in my case) and the Value Member, which can be retrieved with myWebCombo.Text and myWebCombo.Value. For these I can only chose from the properties of my Data Objects (Lastname and Id) but I want the Value to be the data object itself (i.e the Person instance). Is this possible?&lt;/p&gt;
&lt;p&gt;If not, is it anyhow possible to get the bound data object over myWebCombo.&amp;lt;GetTheBoundDataObject&amp;gt;?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>