﻿<?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 - specify a composite primary key </title><link>http://www.intersoftsolutions.com/Community/WebGrid/specify-a-composite-primary-key/</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>specify a composite primary key </title><link>http://www.intersoftsolutions.com/Community/WebGrid/specify-a-composite-primary-key/</link><pubDate>Sun, 30 Aug 2009 22:03:10 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Just quoting from my response in &lt;a href="../Multiple-Datakey-fields/" target="_blank"&gt;Multiple Datakey Fields&lt;/a&gt; thread&lt;br /&gt;&lt;/p&gt;&lt;blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 5px; padding-left: 10px;"&gt;&lt;p&gt;Inorder to support multiple key field scenario you don't need toset the
DataKeyField property in the WebGrid table. We already have a
sample of this scenario in HierarchicalGrid.aspx. The OrderDetails has
multiply key, OrderID and ProductID, so in the OrderDetails WebGrid
definition no DataKeyField property is assigned&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridTable Caption="Order Details" DataMember="Order Details"&amp;gt;&lt;/pre&gt;
&lt;p&gt;On the other hand, the Order table which has the primary key OrderID will have to be assigned the DataKeyField property&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGridTable Caption="Orders" DataKeyField="OrderID" DataMember="Orders"&amp;gt;&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>specify a composite primary key </title><link>http://www.intersoftsolutions.com/Community/WebGrid/specify-a-composite-primary-key/</link><pubDate>Fri, 28 Aug 2009 12:20:49 GMT</pubDate><dc:creator>jleyva@bisa.com.pe</dc:creator><description>&lt;p&gt;I want to work in the webgrid a table with a composite primary key (id_user,id_role) and we only can define a key for the webgrid, what can i do?&lt;/p&gt;
&lt;div class="postcontent" id="content262" style="margin-bottom: 10px"&gt;&lt;p&gt;what you mean with"specify a composite primary key for the datatable with those two&amp;nbsp;&amp;nbsp;columns" ????&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>