﻿<?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 - bind two keys to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/bind-two-keys-to-webgrid/</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>bind two keys to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/bind-two-keys-to-webgrid/</link><pubDate>Wed, 26 Jan 2011 05:31:57 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>keys</category><category>key</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Unfortunately, I could not downgrade sql in here. You can try to create a simple dummy database such as the structure and run it. It does not cost big effort since it is only a simple table.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>bind two keys to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/bind-two-keys-to-webgrid/</link><pubDate>Wed, 26 Jan 2011 03:41:17 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>keys</category><category>key</category><description>&lt;p&gt;I am sorry ,I can not use your database.Could you please give a  sql2000(or sql2005) database.&lt;br /&gt;Please see the picture!&lt;/p&gt;
&lt;p&gt;My sql is:sql2005&lt;/p&gt;</description></item><item><title>bind two keys to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/bind-two-keys-to-webgrid/</link><pubDate>Tue, 25 Jan 2011 22:05:16 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebGrid</category><category>keys</category><category>key</category><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;It should be no problem when have 2 primary keys in your table. When bind with 2 primary keys/composite keys, WebGrid would automatically detect it. You would not need to specify &lt;b&gt;&lt;i&gt;DataKeyField&lt;/i&gt;&lt;/b&gt; properties.&lt;br /&gt;Please see my attached sample. It should work fine. For Add,Update and Delete scenario, you should use &lt;b&gt;&lt;i&gt;Optimistic Concurency&lt;/i&gt;&lt;/b&gt; in your SQLDataSource.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>bind two keys to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/bind-two-keys-to-webgrid/</link><pubDate>Mon, 24 Jan 2011 11:57:09 GMT</pubDate><dc:creator>yudi</dc:creator><category>WebGrid</category><category>keys</category><category>key</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to support multiple-key field scenario you don’t need to set the &lt;strong&gt;DataKeyField&lt;/strong&gt; property in the WebGrid table. A sample, &lt;strong&gt;HierarchicalGrid.aspx&lt;/strong&gt;, in WebGridSamples project shows that the OrderDetails table has multiple-key – OrderID and ProductID –, so in the OrderDetails WebGrid definition no DataKeyField property is assigned.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridTable&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Order Details"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Order Details"&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;On the other hand, the Order table which has the primary key OrderID will have to be assigned the DataKeyField property.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;&amp;lt;&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;ISWebGrid&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;:&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;WebGridTable&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;Caption&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Orders"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataKeyField&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="OrderID"&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: red; font-size: 9pt"&gt;DataMember&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;="Orders"&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This should helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>bind two keys to webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/bind-two-keys-to-webgrid/</link><pubDate>Mon, 24 Jan 2011 10:30:02 GMT</pubDate><dc:creator>qq397472251</dc:creator><category>WebGrid</category><category>keys</category><category>key</category><description>&lt;p&gt;If I have a table "login",its primary keys are column "Id" and column "Name",How can I bind the table "login" to webgrid( it must Use add,update,delete by grid's way ).&lt;strong&gt;How ever the grid's datakeyfield can not to fill with "Id, Name".&lt;br /&gt;Please see the picture below!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;what shoud I do?Anyone can Help me?&lt;/p&gt;</description></item></channel></rss>