<?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 : Can I Force a Column to be Grouped?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Can I Force a Column to be Grouped?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 02:52:40 +0000</pubDate>
  <lastBuildDate>Tue, 13 Dec 2005 16:44:30 +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=3400</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[Can I Force a Column to be Grouped? : Hi Eric,  See ReportColumn methods...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3400&amp;PID=10188&amp;title=can-i-force-a-column-to-be-grouped#10188</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 3400<br /><strong>Posted:</strong> 13 December 2005 at 4:44pm<br /><br />Hi Eric,<br /><br />See ReportColumn methods Set(Is)Groupable, Set(Is)Sortable. They could probably help you.<br /><br />Also, if you’re adding a custom column which is derived from standard CXTPReportColumn, you can set the internal member m_bAllowDrag to FALSE for this column. It will prevent it from being dragged from the Group By header. But note that it would also prevent it from being dragged from its place on the Report header. <br /><br />--<br />WBR,<br />Serge]]>
   </description>
   <pubDate>Tue, 13 Dec 2005 16:44:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3400&amp;PID=10188&amp;title=can-i-force-a-column-to-be-grouped#10188</guid>
  </item> 
  <item>
   <title><![CDATA[Can I Force a Column to be Grouped? : Is it possible to force a specific...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3400&amp;PID=10179&amp;title=can-i-force-a-column-to-be-grouped#10179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1674">EricM</a><br /><strong>Subject:</strong> 3400<br /><strong>Posted:</strong> 12 December 2005 at 8:31pm<br /><br /><P>Is it possible to force a specific column to be grouped?&nbsp; I can "suggest" that the column be grouped using the following code:</P><FONT size=2><P>{</P><P>CXTPReportColumn </FONT><FONT color=#ff0000 size=2>*</FONT><FONT size=2>pColumn </FONT><FONT color=#ff0000 size=2>=</FONT><FONT size=2> m_wndReport</FONT><FONT color=#ff0000 size=2>.</FONT><FONT size=2>AddColumn</FONT><FONT color=#ff0000 size=2>(</FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> CXTPReportColumn</FONT><FONT color=#ff0000 size=2>(0,</FONT><FONT size=2> _T</FONT><FONT color=#ff0000 size=2>(</FONT><FONT color=#808080 size=2>"Test Column"</FONT><FONT color=#ff0000 size=2>),</FONT><FONT size=2> </FONT><FONT color=#ff0000 size=2>50));</P></FONT><FONT size=2><P>CXTPReportColumns </FONT><FONT color=#ff0000 size=2>*</FONT><FONT size=2>pColumns </FONT><FONT color=#ff0000 size=2>=</FONT><FONT size=2> m_wndReport</FONT><FONT color=#ff0000 size=2>.</FONT><FONT size=2>GetColumns</FONT><FONT color=#ff0000 size=2>();</P></FONT><FONT size=2><P>CXTPReportColumnOrder </FONT><FONT color=#ff0000 size=2>*</FONT><FONT size=2>pColumnOrder </FONT><FONT color=#ff0000 size=2>=</FONT><FONT size=2> pColumns</FONT><FONT color=#ff0000 size=2>-&gt;</FONT><FONT size=2>GetGroupsOrder</FONT><FONT color=#ff0000 size=2>();</P></FONT><FONT size=2><P>pColumnOrder</FONT><FONT color=#ff0000 size=2>-&gt;</FONT><FONT size=2>InsertAt</FONT><FONT color=#ff0000 size=2>(0,</FONT><FONT size=2> pColumn</FONT><FONT color=#ff0000 size=2>);</P></FONT><FONT size=2><P>pColumn</FONT><FONT color=#ff0000 size=2>-&gt;</FONT><FONT size=2>SetVisible</FONT><FONT color=#ff0000 size=2>(</FONT><FONT size=2>FALSE</FONT><FONT color=#ff0000 size=2>);</FONT></P><P><FONT color=#000000 size=2>}</FONT></P><P><FONT color=#000000 size=2>But doing this only starts the control off with the grouping, it doesn't deny users from subsequently removing the grouping.&nbsp; Can I turn off the ability to remove just this column from the grouping.&nbsp; (i could turn it all off by hiding the GroupBy header, but I don't want to do that).</FONT></P><P><FONT color=#000000 size=2>Thanks,</FONT></P><P><FONT color=#ff0000 size=2><FONT color=#000000>E</FONT></P></FONT>]]>
   </description>
   <pubDate>Mon, 12 Dec 2005 20:31:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3400&amp;PID=10179&amp;title=can-i-force-a-column-to-be-grouped#10179</guid>
  </item> 
 </channel>
</rss>