<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Presentation Controls</title><link>http://forums.asp.net/24.aspx</link><description>ASP.NET data-bound controls such as the DataGrid, DataList, GridView, FormView, DetailsView, and Repeater Controls.  &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=23&amp;c=17" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Gridview: Double-click event for cells?</title><link>http://forums.asp.net/thread/1761179.aspx</link><pubDate>Tue, 19 Jun 2007 09:35:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1761179</guid><dc:creator>prashanthgajra</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1761179.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1761179</wfw:commentRss><description>&lt;p&gt;Please write this code in the RowDataBound event of gridview. This will enable a popup to come up when you double click on a gridview row.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;font size="2"&gt;e.Row.Attributes.Add(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;ondblclick&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;javascript:return GetJobID(&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; + e.Row.Cells[0].Text.Replace(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39;&amp;#39;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;) + &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;&amp;#39;);this.style.font=&amp;#39;Italic 12pt helvetica&amp;#39;;this.style.color = &amp;#39;Gray&amp;#39;;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;The javascript function will look like this&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; ShowAuditLog(JobId)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;var&lt;/font&gt;&lt;font size="2"&gt; sURL = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;DisplayAudit.aspx?JobID=&amp;#39;&lt;/font&gt;&lt;font size="2"&gt; + JobId;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;myWindow = window.open(sURL, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;Current_Audit_Log&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;,&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;#39;toolbar=no,menubar=no,resizable=no,scrollbars=yes,status=no,location=no,width=800,height=600&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;
&lt;p&gt;myWindow.moveTo(75,50);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;false&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;function&lt;/font&gt;&lt;font size="2"&gt; GetJobID(RowIndex)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;ShowAuditLog(RowIndex); &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I hope this will resolve your query.&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item><item><title>Re: Gridview: Double-click event for cells?</title><link>http://forums.asp.net/thread/1683317.aspx</link><pubDate>Thu, 26 Apr 2007 11:46:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1683317</guid><dc:creator>anildbest83</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1683317.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1683317</wfw:commentRss><description>&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;I want to open a popup window by double&amp;nbsp;cilicking on gridview row&lt;/p&gt;
&lt;p&gt;Is it possible&lt;/p&gt;
&lt;p&gt;Pls roly soon&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Gridview: Double-click event for cells?</title><link>http://forums.asp.net/thread/1470326.aspx</link><pubDate>Sun, 19 Nov 2006 18:17:57 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1470326</guid><dc:creator>joteke</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1470326.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1470326</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have demonstrated how to develop a row-clickable GridView: &lt;a href="http://aspadvice.com/blogs/joteke/archive/2006/01/07/14576.aspx"&gt;http://aspadvice.com/blogs/joteke/archive/2006/01/07/14576.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;By taking that approach and customizing it a little&amp;nbsp;bit, you can get it to tell you what cell (instead of row) was clicked, and after that developing the copy functionality is very very easy.&lt;/p&gt;</description></item><item><title>Gridview: Double-click event for cells?</title><link>http://forums.asp.net/thread/1469488.aspx</link><pubDate>Sat, 18 Nov 2006 00:23:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1469488</guid><dc:creator>ferrethouse</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1469488.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=24&amp;PostID=1469488</wfw:commentRss><description>&lt;div&gt;Here is what I want to do. When in edit mode for a row in the gridview control, if the user double-clicks on a cell it will copy the contents of the cell preceeding it into that cell.&lt;br /&gt;&lt;br /&gt;Is this possible?&lt;br /&gt;&lt;br /&gt;Thanks.&lt;/div&gt;</description></item></channel></rss>