<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : GridViewContext.RowDoubleClickCommandName</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : GridViewContext.RowDoubleClickCommandName</description>
  <pubDate>Thu, 11 Jun 2026 12:22:02 -700</pubDate>
  <lastBuildDate>Thu, 20 Dec 2007 12:52:10 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=545</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>GridViewContext.RowDoubleClickCommandName : On the handler method for the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=2274#2274</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 545<br /><strong>Posted:</strong> 20-Dec-2007 at 12:52pm<br /><br />On the handler method for the command, where I showed it in my example.<DIV>&nbsp;</DIV><DIV>Bill</DIV>]]>
   </description>
   <pubDate>Thu, 20 Dec 2007 12:52:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=2274#2274</guid>
  </item> 
  <item>
   <title>GridViewContext.RowDoubleClickCommandName : Is there a specific place this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=2250#2250</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 545<br /><strong>Posted:</strong> 18-Dec-2007 at 8:45am<br /><br />Is there a specific place this should go?]]>
   </description>
   <pubDate>Tue, 18 Dec 2007 08:45:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=2250#2250</guid>
  </item> 
  <item>
   <title>GridViewContext.RowDoubleClickCommandName : I missed an important point.   CAB...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=2228#2228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 545<br /><strong>Posted:</strong> 14-Dec-2007 at 4:37pm<br /><br />I missed an important point.&nbsp; <DIV>&nbsp;</DIV><DIV>CAB provides a declarative syntax for specifying a command handler:</DIV><DIV><DIV></DIV><FONT size=2></FONT><FONT color=#0000ff size=2><FONT size=2><P>&#091;</FONT><FONT color=#008080 size=2>CommandHandler</FONT><FONT size=2>(</FONT><FONT color=#000000 size=2>commandName</FONT><FONT size=2>)&#093;</P></FONT>void</FONT><FONT size=2> cmd_ExecuteAction(</FONT><FONT color=#0000ff size=2>object</FONT><FONT size=2> sender, </FONT><FONT color=#008080 size=2>EventArgs</FONT><FONT size=2> e)</DIV><P>{</P><P></FONT><FONT color=#008000 size=2>// Perform edit processing here</P></FONT><FONT size=2><P>}</P><DIV></DIV><P>That way you don't have to fish the command out of the WorkItem and attach the handler yourself.</P><DIV></DIV><DIV></DIV>Sorry,<DIV></DIV><DIV></DIV>Bill J.</FONT>]]>
   </description>
   <pubDate>Fri, 14 Dec 2007 16:37:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=2228#2228</guid>
  </item> 
  <item>
   <title>GridViewContext.RowDoubleClickCommandName : Hi Dan,  You&amp;#039;ll need a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=1924#1924</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 545<br /><strong>Posted:</strong> 13-Nov-2007 at 3:19pm<br /><br />Hi Dan,<DIV></DIV><DIV></DIV>You'll need a unique command name, so the second form:<DIV>&nbsp;</DIV><DIV>searchResultsViewContext.RowDoubleClickCommandName =searchResultsViewContext.MakeViewSpecifiedId(CommandNames.Edit);</DIV><DIV>&nbsp;</DIV><DIV>is what you want.</DIV><DIV>&nbsp;</DIV><DIV>The next question is "What do you want to happen when the command is fired?"&nbsp; You'll need to attach a handler to the command like this:</DIV><P><FONT color=#0000ff size=2>string</FONT><FONT size=2> commandName = viewContext.MakeViewSpecificId(</FONT><FONT color=#008080 size=2>CommandNames</FONT><FONT size=2>.Edit);</P><P></FONT><FONT color=#008080 size=2>Command</FONT><FONT size=2> cmd = WorkItem.Commands.Get(commandName);</P><DIV></DIV><FONT size=2><P><FONT color=#006633>// Attach command handler</FONT></P><DIV>cmd.ExecuteAction += </FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#008080 size=2>EventHandler</FONT><FONT size=2>(cmd_ExecuteAction);</DIV><DIV>----------------------------------</DIV><DIV>&nbsp;</DIV><DIV><DIV></DIV><FONT size=2></FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> cmd_ExecuteAction(</FONT><FONT color=#0000ff size=2>object</FONT><FONT size=2> sender, </FONT><FONT color=#008080 size=2>EventArgs</FONT><FONT size=2> e)</DIV><P>{</P><P></FONT><FONT color=#008000 size=2>// Perform edit processing here</P></FONT><FONT size=2><P>}</P><DIV></DIV><P>Bill J.</FONT></FONT></FONT></P>]]>
   </description>
   <pubDate>Tue, 13 Nov 2007 15:19:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=1924#1924</guid>
  </item> 
  <item>
   <title>GridViewContext.RowDoubleClickCommandName : I am trying to get the double...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=1920#1920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 545<br /><strong>Posted:</strong> 13-Nov-2007 at 2:32pm<br /><br />I am trying to get the double click feature to work on a grid. <DIV>In the page controller where I set the ViewContext for the grid I have set the <FONT size=2><FONT color=#00ffff><FONT color=#3366cc>RowDoubleClickCommandName</FONT> </FONT>of the GridContext to EditNames.Edit. Hoping that it will run the edit command for that Grid but it doesn't. What am I doing wrong?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Code Excerpt (From SearchSummaryDetailPageController)</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">private</SPAN><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"> <SPAN style="COLOR: blue">void</SPAN> AddSearchResultsViewContext()<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">{<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: green">// Create and add a new GridViewContext for the master grid<o:p></o:p></SPAN></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">GridViewContext</SPAN> searchResultsViewContext =<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: #2b91af">GridViewContext</SPAN>.AddNew(WorkItem, SearcherViewController.SearchResultsViewId);<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>searchResultsViewContext.BeforeLeaveRowHandler = MasterGridBeforeLeaveRowHandler;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>searchResultsViewContext.RowDoubleClickCommandName = <SPAN style="COLOR: #2b91af"></P><DIV>CommandNames</SPAN>.Edit;</DIV><DIV><FONT color=#009933>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Have also tried</FONT></DIV><DIV><FONT color=#009933>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //searchResultsViewContext.RowDoubleClickCommandName =searchResultsViewContext.MakeViewSpecifiedId(CommandNames.Edit);</FONT></DIV><DIV><DIV><DIV><DIV><DIV><DIV><DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: n&#111;ne"><o:p></o:p></SPAN></P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-no-proof: yes">}</SPAN></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>]]>
   </description>
   <pubDate>Tue, 13 Nov 2007 14:32:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=545&amp;PID=1920#1920</guid>
  </item> 
 </channel>
</rss>