iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi
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:
public class Person { private Guid personId; private string lastname; [DataMember] public Guid Id { get { return personId; } protected set { personId = value; } [DataMember] public string Lastname { get { return lastname; } set { lastname = value; } } }
The ObjectDataSource retrieves a list of Persons with a WCF-Service:
public IList<Person> GetPersons();
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?
If not, is it anyhow possible to get the bound data object over myWebCombo.<GetTheBoundDataObject>?
Thanks
Currently it is not possible to get the reference to LINQ object from WebCombo.
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.
Attached is a simple demonstration of such technique.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname