<?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="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Getting the value of column 1 when doubleclicking</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Getting the value of column 1 when doubleclicking]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 19:23:20 +0000</pubDate>
  <lastBuildDate>Tue, 30 Oct 2007 06:06:53 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=7175</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : You don&amp;#039;t need the CInt/CStr-Conversion,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=27856&amp;title=getting-the-value-of-column-1-when-doubleclicking#27856</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 30 October 2007 at 6:06am<br /><br />You don't need the CInt/CStr-Conversion, because you put the Fieldobject to the Item and not the default-property.<DIV>&nbsp;</DIV><DIV>Expand your Code with</DIV><DIV>Set Item = Record.AddItem(rsTable.Fields!CustomerNUmber.<strong>Value</strong>)</DIV><DIV>&nbsp;</DIV><DIV>This save time and also the content-type stays there (eg. Date/Str/Double/int/...)</DIV>]]>
   </description>
   <pubDate>Tue, 30 Oct 2007 06:06:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=27856&amp;title=getting-the-value-of-column-1-when-doubleclicking#27856</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : Cool... I actually thought about...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23079&amp;title=getting-the-value-of-column-1-when-doubleclicking#23079</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2181">Zach</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 19 May 2007 at 3:40pm<br /><br />Cool... I actually thought about adding CInt, CStr... but then just didnt.. my bad :(<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 19 May 2007 15:40:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23079&amp;title=getting-the-value-of-column-1-when-doubleclicking#23079</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : Hi again Zach  Thank you very...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23062&amp;title=getting-the-value-of-column-1-when-doubleclicking#23062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2988">Soren</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 19 May 2007 at 4:26am<br /><br />Hi again Zach<DIV>&nbsp;</DIV><DIV>Thank you very much for your help.</DIV><DIV>You really got me right on track.</DIV><DIV>&nbsp;</DIV><DIV>At first, I did:</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(rsTable.Fields!CustomerNUmber)</DIV><DIV>&nbsp;</DIV><DIV>but the List stayed empty<img src="http://forum.codejock.com/smileys/smiley7.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>Then I started thinking about what you said about formatting.</DIV><DIV>&nbsp;</DIV><DIV>So, now I do this:</DIV><DIV>&nbsp;&nbsp; Set Item = Record.AddItem(CInt(rsTable.Fields!CustomerNUmber))</DIV><DIV>&nbsp;&nbsp; Set Item = Record.AddItem(CStr(rsTable.Fields!CompanyName))</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>And everything is pure happiness <img src="http://forum.codejock.com/smileys/smiley31.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Sat, 19 May 2007 04:26:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23062&amp;title=getting-the-value-of-column-1-when-doubleclicking#23062</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : I never use the format part of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23059&amp;title=getting-the-value-of-column-1-when-doubleclicking#23059</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2181">Zach</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 19 May 2007 at 12:33am<br /><br />I never use the format part of the Report Control... but I just realized.. you did just post your actual code :)<DIV>&nbsp;</DIV><DIV>You are formatting each cell to look like your result... hum... interesting... might be an interesting trick to use sometime... but... uh.. why?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Record = CustomerList.Records.Add</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(rsTable.Fields!CustomerNUmber)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(rsTable.Fields!CompanyName)</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(rsTable.Fields!Address)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(rsTable.Fields!ZIP)<BR></DIV><DIV>&nbsp;</DIV><DIV>... That I think will get you what you want... sorry I missed that the first time... as I said.. I do not use the format property and I have never used the Microsoft way of pulling in fields from a table so I just ignored that part in my mind at first <img src="http://forum.codejock.com/smileys/smiley16.gif" border="0"></DIV></DIV>]]>
   </description>
   <pubDate>Sat, 19 May 2007 00:33:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23059&amp;title=getting-the-value-of-column-1-when-doubleclicking#23059</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking :   Soren wrote:Hi Zack   This...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23058&amp;title=getting-the-value-of-column-1-when-doubleclicking#23058</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2181">Zach</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 19 May 2007 at 12:27am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Soren" alt="Originally posted by Soren" style="vertical-align: text-bottom;" /> <strong>Soren wrote:</strong><br /><br />Hi Zack <DIV>&nbsp;</DIV><DIV>This is what I do:</DIV><DIV>&nbsp;</DIV><DIV>First, I create the headers</DIV><DIV>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 0, "Customer Number", 25, True<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Column(0).Groupable = False<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 1, "Company name", 100, True<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 2, "Address", 100, True<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 3, "ZIP", 50, True<BR></DIV><DIV>Then I add the data:</DIV><DIV>&nbsp;</DIV><DIV>aCount = rsTable.RecordCount<BR>rsTable.MoveFirst<BR>a = 0</DIV><DIV>While a &lt; aCount</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Record = CustomerList.Records.Add</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(a)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!CustomerNUmber</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!CompanyName</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!Address<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!ZIP<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = a + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsTable.MoveNext<BR>Wend<BR>CustomerList.Populate<BR></DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>If that is in someway is close to your exact code... uh... what did you expect?</DIV><DIV>&nbsp;</DIV><DIV>You are placing a count into the first column?</DIV><DIV>&nbsp;</DIV><DIV>I also assume you define a value for Str elsewhere.. but this:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(a)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>listed like that .. when the others are listed like:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Would as I said... make me think that you are assigning the value to Str elsewhere... and just used that for filler... but the first one.. it really looks like you put in "a" there... or its value anyway... which would make it so that when you double click on it... you are going to get what looks like a row number...</DIV><DIV>&nbsp;</DIV><DIV>... if you post the actual code... from the select statement to the end of the loop of the results... I can probably have a better clue what is wrong... </DIV>]]>
   </description>
   <pubDate>Sat, 19 May 2007 00:27:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23058&amp;title=getting-the-value-of-column-1-when-doubleclicking#23058</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : Hi Zac  I used the same code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23055&amp;title=getting-the-value-of-column-1-when-doubleclicking#23055</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1884">moe188</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 18 May 2007 at 8:21pm<br /><br />Hi Zac <DIV>I used the same code with the SelectionChanged events to get the value of the first column with no problems. then when I double click on reportcontrol (RowDblClick events), I check for the value of the first column, if the value is empty I don't do nothing otherwise I do whatever I want to do base on the value of column 1.</DIV><DIV>good luck.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 20:21:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23055&amp;title=getting-the-value-of-column-1-when-doubleclicking#23055</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : Hi Zack  This is what I do:  First,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23053&amp;title=getting-the-value-of-column-1-when-doubleclicking#23053</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2988">Soren</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 18 May 2007 at 7:35pm<br /><br />Hi Zack<DIV>&nbsp;</DIV><DIV>This is what I do:</DIV><DIV>&nbsp;</DIV><DIV>First, I create the headers</DIV><DIV>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 0, "Customer Number", 25, True<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Column(0).Groupable = False<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 1, "Company name", 100, True<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 2, "Address", 100, True<BR>&nbsp;&nbsp;&nbsp; frmKontakter.CustomerList.Columns.Add 3, "ZIP", 50, True<BR></DIV><DIV>Then I add the data:</DIV><DIV>&nbsp;</DIV><DIV>aCount = rsTable.RecordCount<BR>rsTable.MoveFirst<BR>a = 0</DIV><DIV>While a &lt; aCount</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Record = CustomerList.Records.Add</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(a)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!CustomerNUmber</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!CompanyName</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!Address<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(Str)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Item.Format = rsTable.Fields!ZIP<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = a + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rsTable.MoveNext<BR>Wend<BR>CustomerList.Populate<BR></DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 19:35:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23053&amp;title=getting-the-value-of-column-1-when-doubleclicking#23053</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : Dont know what to tell you..   I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23051&amp;title=getting-the-value-of-column-1-when-doubleclicking#23051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2181">Zach</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 18 May 2007 at 7:18pm<br /><br />Dont know what to tell you..<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I have a RowDblClick even that looksl ike this... in VB6 ... and works perfectly</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Data_RowDblClick(ByVal Row As XtremeReportControl.IReportRow, _<BR>&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;&nbsp; ByVal Item As XtremeReportControl.IReportRecordItem)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; MsgBox Row.Record(4).Value</DIV><DIV>&nbsp;</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>You can also try Row.Record(4).Caption ... depending on what you are doing... you may need to do that.</DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 19:18:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23051&amp;title=getting-the-value-of-column-1-when-doubleclicking#23051</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : I think there is something wrong. I&amp;#039;ve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23050&amp;title=getting-the-value-of-column-1-when-doubleclicking#23050</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2988">Soren</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 18 May 2007 at 6:06pm<br /><br />I think there is something wrong.<DIV>I've tried</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not wndview.FocusedRow.GroupRow Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CustomeNumber = wndview.FocusedRow.Record(Col1).Value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if</DIV><DIV>&nbsp;</DIV><DIV>and it returns the row number</DIV><DIV>&nbsp;</DIV><DIV>And if I do this:</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not wndview.FocusedRow.GroupRow Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CustomeNumber = wndview.FocusedRow.Record(SOME_RUBBISH).Value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if</DIV><DIV>&nbsp;</DIV><DIV>the row number is returned too.</DIV><DIV>&nbsp;</DIV><DIV>Could there be som settings missing in the report control?</DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 18:06:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23050&amp;title=getting-the-value-of-column-1-when-doubleclicking#23050</guid>
  </item> 
  <item>
   <title><![CDATA[Getting the value of column 1 when doubleclicking : hi,  try thiswith reprotcontrol...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23049&amp;title=getting-the-value-of-column-1-when-doubleclicking#23049</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1884">moe188</a><br /><strong>Subject:</strong> 7175<br /><strong>Posted:</strong> 18 May 2007 at 5:51pm<br /><br />hi, <DIV>try this&nbsp;with reprotcontrol selection changed or rowdoublclick</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not wndview.FocusedRow.GroupRow Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CustomeNumber = wndview.FocusedRow.Record(Col1).Value<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if</DIV><DIV>I hope that will work for you</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 May 2007 17:51:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7175&amp;PID=23049&amp;title=getting-the-value-of-column-1-when-doubleclicking#23049</guid>
  </item> 
 </channel>
</rss>