﻿<?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 - WebGrid Enterprise - Integration WebCombo - display DataValueField instead DataTextField</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Integration-WebCombo---display-DataValueField-instead-DataTextField/</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>Integration WebCombo - display DataValueField instead DataTextField</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Integration-WebCombo---display-DataValueField-instead-DataTextField/</link><pubDate>Fri, 11 Sep 2009 03:19:47 GMT</pubDate><dc:creator>Michael</dc:creator><description>&lt;div id="result_box" dir="ltr"&gt;&lt;span style="font-size: 10pt"&gt;I solved it! V&lt;/span&gt;&lt;span style="font-size: 10pt"&gt;ery easy when you know it...&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size: 10pt"&gt;&lt;div id="result_box" dir="ltr"&gt;The following code was necessary.&lt;/div&gt;&lt;/span&gt;
&lt;p&gt;&lt;span style="font-size: 10pt"&gt;&lt;strong&gt;UnitID.ValueList.DataSource = ds;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Importent:&lt;/p&gt;
&lt;div id="result_box" dir="ltr"&gt;The code must also be executed on postback!&lt;/div&gt;</description></item><item><title>Integration WebCombo - display DataValueField instead DataTextField</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Integration-WebCombo---display-DataValueField-instead-DataTextField/</link><pubDate>Thu, 10 Sep 2009 13:32:45 GMT</pubDate><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I want integrate Combo in Grid programmatically. &lt;/p&gt;
&lt;p&gt;I bound the Webgrid and the Webcombo to Dataset and integrate Combo as follows (on PrepareDataBinding Event):&lt;/p&gt;&lt;pre&gt;WebGridColumn UnitID = grd.RootTable.Columns[2];
UnitID.Caption = "Unit";
UnitID.Width = Unit.Pixel(200);
UnitID.EditType = EditType.WebComboNET;
UnitID.WebComboID = "wcUnit";
UnitID.ValueList.DataMember = "Measuring.Unit";
UnitID.ValueList.DataTextField = "Name";
UnitID.ValueList.DataValueField = "ID";&lt;/pre&gt;
&lt;p&gt;After selecting an item in the combo, I see their name (DataTextField) -&amp;gt; see attached picure ColumnBeforeInsert.jpg&lt;/p&gt;
&lt;p&gt;After inserting, I see the ID (DataValueField) in this columns -&amp;gt; see attached picure ColumnAfterInsert.jpg&lt;/p&gt;
&lt;p&gt;Why?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;</description></item></channel></rss>