<?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 : Remembering scroll position in PropertyGrid</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Property Grid : Remembering scroll position in PropertyGrid]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 05:47:15 +0000</pubDate>
  <lastBuildDate>Thu, 26 Apr 2012 04:49:28 +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=19688</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[Remembering scroll position in PropertyGrid : Hi;This sounds like a bug!Perhaps...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68103&amp;title=remembering-scroll-position-in-propertygrid#68103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19688<br /><strong>Posted:</strong> 26 April 2012 at 4:49am<br /><br />Hi;<br><br>This sounds like a bug!<br>Perhaps you should open a support ticket.<br>]]>
   </description>
   <pubDate>Thu, 26 Apr 2012 04:49:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68103&amp;title=remembering-scroll-position-in-propertygrid#68103</guid>
  </item> 
  <item>
   <title><![CDATA[Remembering scroll position in PropertyGrid : Hi Martin,Thanks for your reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68095&amp;title=remembering-scroll-position-in-propertygrid#68095</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6141">ericchubb</a><br /><strong>Subject:</strong> 19688<br /><strong>Posted:</strong> 25 April 2012 at 11:42am<br /><br />Hi Martin,<div><br></div><div>Thanks for your reply. I tried GetTopIndex but it returns 0 every time regardless of the scroll position of the the grid. I also tried invoking GetTopIndex on the property grid's view member object but again , no difference.</div><div><br></div><div>Eric</div>]]>
   </description>
   <pubDate>Wed, 25 Apr 2012 11:42:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68095&amp;title=remembering-scroll-position-in-propertygrid#68095</guid>
  </item> 
  <item>
   <title><![CDATA[Remembering scroll position in PropertyGrid : Hi;Have you ever tried using C...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68083&amp;title=remembering-scroll-position-in-propertygrid#68083</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 19688<br /><strong>Posted:</strong> 24 April 2012 at 6:10pm<br /><br />Hi;<br><br>Have you ever tried using CXTPPropertyGrid::GetTopIndex(), CXTPPropertyGrid::SetTopIndex() to position to the previous visible region? But you also have to save/restore the expand/collapse state of each item in the control.<br>]]>
   </description>
   <pubDate>Tue, 24 Apr 2012 18:10:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68083&amp;title=remembering-scroll-position-in-propertygrid#68083</guid>
  </item> 
  <item>
   <title><![CDATA[Remembering scroll position in PropertyGrid :  Hi thereI have a CXTPPropertyGrid...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68074&amp;title=remembering-scroll-position-in-propertygrid#68074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6141">ericchubb</a><br /><strong>Subject:</strong> 19688<br /><strong>Posted:</strong> 24 April 2012 at 9:03am<br /><br />Hi there<div><br></div><div>I have a CXTPPropertyGrid which I empty and repopulate each time a user clicks between items on a CXTPReportControl. When the repopulation is complete, the scrollbar and scroll position of the PropertyGrid always reset back to the top, which can be frustrating for users if they are viewing fields at the bottom of the scroll view, so I'd like to be able to store the current scroll state of the property grid prior to updating, and reapply it after the control has been repopulated. The property grid will always contain the same number and type of fields so it is safe to re-use the scroll position, but I'm just not sure how to do it.</div><div><br></div><div>What I have tried so far is:</div><div><br></div><div><pre style="font-family: 'Courier New'; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; ">SCROLLINFO&nbsp;si;</pre><pre style="font-family: 'Courier New'; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><span style=": white; ">CXTPPropertyGridView&nbsp;&amp;&nbsp;vView&nbsp;=&nbsp;pPropertyGrid-&gt;GetGridView();</span></pre></div><div><pre style="font-family: 'Courier New'; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; ">vView.GetScrollInfo(SB_LINEDOWN,&nbsp;&amp;si);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</pre><pre style="font-family: 'Courier New'; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><pre style="font-family: 'Courier New'; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><span style="color:blue;">int</span>&nbsp;nOldPos&nbsp;=&nbsp;si.nPos;</pre><pre style="font-family: 'Courier New'; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><font color="#339933">//Do repopulation stuff</font></pre><pre style="font-family: 'Courier New'; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><span style="color:blue;">if</span>&nbsp;(si.nPos&nbsp;!=&nbsp;nOldPos){&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;vView.ScrollWindow&nbsp;((nOldPos&nbsp;-&nbsp;si.nPos),0);}</pre></pre><pre style="font-family: 'Courier New'; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><br></pre><pre style="font-size: 13px; "><font face="Verdana, Arial, Helvetica, sans-serif">But this doesn't seem to work. I've also tried </font></pre><pre style="font-size: 13px; "><pre style="font-family: 'Courier New'; ">vView.SetScrollInfo(SB_LINEDOWN,&nbsp;&amp;scrollinfo);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</pre><pre><font face="Verdana, Arial, Helvetica, sans-serif">and</font></pre><pre style="font-family: 'Courier New'; ">vView.SetScrollPos(SB_LINEDOWN,scrollinfo.nPos);</pre><pre><font face="Verdana, Arial, Helvetica, sans-serif">but they didn't work either, so I'm stuck as to what to try next. </font></pre><pre><font face="Verdana, Arial, Helvetica, sans-serif">Any help would me much appreciated</font></pre><pre><font face="Verdana, Arial, Helvetica, sans-serif">Eric</font></pre></pre><pre style="font-family: 'Courier New'; font-size: 13px; -: initial; -attachment: initial; -origin: initial; -clip: initial; : white; -: initial initial; -repeat: initial initial; "><br></pre></div>]]>
   </description>
   <pubDate>Tue, 24 Apr 2012 09:03:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19688&amp;PID=68074&amp;title=remembering-scroll-position-in-propertygrid#68074</guid>
  </item> 
 </channel>
</rss>