﻿<?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 - Webgrid column value depending on multiple values</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-column-value-depending-on-multiple-values/</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>Webgrid column value depending on multiple values</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-column-value-depending-on-multiple-values/</link><pubDate>Sun, 08 Apr 2012 23:22:10 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>WebCombo</category><category>Multiple</category><category>multiple values</category><category>value list</category><category>multiple column lookup</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I assume that the 8 different Sector tables (“SectorA”, “SectorB”, “SectorC”, …, “SectorH”) have identical structure. If my assumption is correct, then in the select query of “User” table, we can use the union query to combine the results of “Users” and “Sector” select statement into a single result set.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;After WebGrid is bind to the “User” – “Sector” union table, the value list can be defined based on the “WorkArea” table.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Hope this helps. Please let us know if you have different scenario.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Webgrid column value depending on multiple values</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-column-value-depending-on-multiple-values/</link><pubDate>Wed, 04 Apr 2012 10:03:18 GMT</pubDate><dc:creator>beyti77</dc:creator><category>WebGrid</category><category>WebCombo</category><category>Multiple</category><category>multiple values</category><category>value list</category><category>multiple column lookup</category><description>&lt;p&gt;The first thing I'm trying to achieve is, get a columns value that is calculated using 2 other columns, like:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;"User" table has the "&lt;span style="font-size: 10pt; "&gt;PrimarySectorId" and "PrimarySectorTypeId" columns.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;&amp;nbsp;And I have 8 different "Sector" tables like "SectorA", "SectorB", .... "SectorH".&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;There is a "WorkAreaId" column in every sector table that is a foreign key relation with "WorkArea" table's Id.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 10pt; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;"PrimarySectorTypeId" is a enum value (integer) that differentiates the sectors.&lt;/p&gt;
&lt;p&gt;Therefore, all I need to do is to bind the users to a webgrid and include a WorkArea column, so I need to get both the "PrimarySectorId" and "PrimarySectorTypeId" to get the correct "WorkArea" value.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;But as far as I know, I can just use a &amp;lt;value list&amp;gt; and take only one value to calculate a column value.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I'd really like to get it by myself but it has been so long and no step forward I could get.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Note: It would be lovely if someone could include a sample of many to many realationship binding to a webgrid. &lt;/p&gt;</description></item></channel></rss>