﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>c360 Forums / SDK for Microsoft CRM / Version 3 Product Questions / Samples  / Lookup with linked header and detail grids / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>c360 Forums</description><link>http://www.c360.com/Forums/</link><webMaster>support@c360.com</webMaster><lastBuildDate>Sat, 22 Nov 2008 14:50:32 GMT</lastBuildDate><ttl>20</ttl><item><title>Lookup with linked header and detail grids</title><link>http://www.c360.com/Forums/Topic1187-39-1.aspx</link><description>&lt;STRONG&gt;&lt;U&gt;&lt;FONT size=3&gt;Overview&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt; &lt;P&gt;This sample was requested by a member on our online forum. What she wanted to do is build a page with a lookup control  and two grids and wanted to filter the data in the first grid based on the selected lookup item and also filter the data in the second grid based on the record selected in the first grid. This is very similar to the "Multiple Lookups" sample except that grids are used instead of lookup controls. This sample demonstrates the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How to refresh a grid when the user selects an item in a lookup control&lt;/LI&gt;&lt;LI&gt;How to refresh a "detail" grid when the user selects a record in the "header" grid&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Installation&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 1&lt;/U&gt; – Edit ISV.config This sample must be added as a new link under a “top level” menu (i.e.: a pull down menu on the top menu bar at the top of the main CRM window). Therefore we need to edit the “CustomMenus” section in Microsoft CRM’s ISV.config file like so: &lt;/P&gt;&lt;P&gt;[code]&amp;lt;Menu Title="Testing c360 SDK"&amp;gt;&lt;/P&gt;&lt;P&gt;     &amp;lt;MenuItem Title="Lookup with linked grids"&lt;/P&gt;&lt;P&gt;         Url="http://localhost:5517/c360Sdk/Samples/LookupWithLinkedGrids/LookupWithLinkedGrids.aspx"&lt;/P&gt;&lt;P&gt;         WinMode="0"&lt;/P&gt;&lt;P&gt;         Client="Web,OutlookWorkstationClient"&lt;/P&gt;&lt;P&gt;         AvailableOffline="false" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Menu&amp;gt;[/code]&lt;/P&gt;&lt;P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; you will need to adjust the url in the above sample to match your environment.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Step 2&lt;/U&gt; – Copy files In your Visual Studio 2005 project, make sure you have a folder called “Samples” and create a sub-folder called “LookupWithLinkedGrids”. In this new folder, copy the ASPX page and its corresponding code behind file: &lt;UL&gt;&lt;LI&gt;LookupWithLinkedGrids.aspx&lt;/LI&gt;&lt;LI&gt;LookupWithLinkedGrids.aspx.cs&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=3&gt;&lt;U&gt;Screenshots&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/7f0aa651-c958-46a8-8907-0bcf.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/de00936e-9e81-4e89-becf-cd70.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/1507766d-a7d2-4f20-871d-6fc0.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://www.c360.com/Forums/Uploads/Images/3ea5ab68-d37d-47e6-987b-3085.png"&gt;</description><pubDate>Tue, 20 Feb 2007 00:59:31 GMT</pubDate><dc:creator>Jeremie Desautels</dc:creator></item></channel></rss>