<?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 : Hide BindableList Properties</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Hide BindableList Properties</description>
  <pubDate>Wed, 10 Jun 2026 16:00:10 -700</pubDate>
  <lastBuildDate>Mon, 18 May 2009 09:15: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=1263</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>Hide BindableList Properties : The reason that I&amp;#039;m using...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1263&amp;PID=4555#4555</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=401" rel="nofollow">kjohnson</a><br /><strong>Subject:</strong> 1263<br /><strong>Posted:</strong> 18-May-2009 at 9:15am<br /><br />The reason that I'm using the BindableList&lt;&gt; for the DevExpress report datasource is because it preserves the entity relations.&nbsp; I can transfer the needed data by doing:<br><br>DataSet dataSet1 = mPersMgr.DataSet;<br><br>Unfortunately, when doing this the entity relations (such as the one that would connect Orders with OrderDetails) does not carry over into the dataset.&nbsp; Is there a way to carry these relations into the dataset?<br><br>Alternatively, I can simply change the display name of the properties (using the system.componentmodel.displaynameattribute).&nbsp; Is there a way I can write a small function to take any property that ends with "Column" and append "InternalOnly_" onto the front of its display name?&nbsp; Or would I need to override each property?<br>]]>
   </description>
   <pubDate>Mon, 18 May 2009 09:15:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1263&amp;PID=4555#4555</guid>
  </item> 
  <item>
   <title>Hide BindableList Properties :  If I understand you correctly,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1263&amp;PID=4546#4546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=4" rel="nofollow">GregD</a><br /><strong>Subject:</strong> 1263<br /><strong>Posted:</strong> 15-May-2009 at 5:06pm<br /><br />If I understand you correctly, I think you're asking for properties such as OrderDateColumn to be suppressed in the display presented by the DevExpress End-User Report Designer.&nbsp; Unfortunately we have no control over that.&nbsp; We do add BindingBrowsable attributes into the definition of properties that we generate (such as the following one for the OrderDatecolumn property an Order entity based on the Order table in our IdeaBladeTutorial database):<br><br>&nbsp;&nbsp; &#091;EditorBrowsable(EditorBrowsableState.Advanced)&#093;<br>&nbsp;&nbsp;&nbsp; <b>&#091;BindingBrowsable(false)&#093;</b><br>&nbsp;&nbsp;&nbsp; public virtual DataColumn OrderDateColumn {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return TypedTable.OrderDateColumn; }<br>&nbsp;&nbsp;&nbsp; }<br><br>Our ControlBindingManager designer (along with other DevForce components) respects this attribute and suppresses the display of properties that have it set to false, as you can see if you use the ControlBindingManager in laying out a WinForm.&nbsp; But, as I say, we have no control over what the DevExpress report designer does.<br><br>If there is an attribute which that report designer respects (you will have to find this out from DevExpress), then you could override (in your Order developer class) the properties you don't want to display, adding the attribute there.&nbsp; For example, here is an override of the OrderDate property that I've put in my Order class:<br><br>&nbsp;&nbsp;&nbsp; &#091;BindingBrowsable(false)&#093;<br>&nbsp;&nbsp;&nbsp; public override DateTime? OrderDate {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return base.OrderDate;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; base.OrderDate = value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br><br>This causes OrderDate not to display in the ControlBindingManager designer, when ordinarily it would.*<br><br>--------------------------------------<br>* After you add such an attribute you will need to build your model, and at the very least close and re-open the form where you want to use the ControlBindingManager designer to get the change to kick in (past the caching done by Visual Studio). I actually closed and reopened Visual Studio to get the change to take.<br><br><br><br><br>]]>
   </description>
   <pubDate>Fri, 15 May 2009 17:06:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1263&amp;PID=4546#4546</guid>
  </item> 
  <item>
   <title>Hide BindableList Properties : I&amp;#039;m currently build an application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1263&amp;PID=4544#4544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=401" rel="nofollow">kjohnson</a><br /><strong>Subject:</strong> 1263<br /><strong>Posted:</strong> 15-May-2009 at 12:42pm<br /><br />I'm currently build an application using both DevForce classic andDevExpress tools.&nbsp; I'm including the DevExpress End-User ReportDesigner so users can create custom reports.&nbsp; I've managed to get itworking by using the IdeaBlade BindableList&lt;&gt; as the datasource.&nbsp;The main problem I've encountered is in which fields are available tothe user.&nbsp; <br><br>For instance I use a BindableList&lt;Orders&gt; asthe datasource.&nbsp; One of the fields in the Orders table is OrderDate,when the report designer looks for fields it finds the OrderDateproperty and OrderDateColumn which only displays on a report as&#091;Model.Orders&#093;.&nbsp; Basically, I want to keep these *Column propertiesfrom being shown.&nbsp; I have been searching through the knowledge basesand forums for both IdeaBlade and DevExpress, and found severalpossible leads to make this happen, but none have worked so far.&nbsp; Cansomeone point me in the right direction in how to hide certainproperties.]]>
   </description>
   <pubDate>Fri, 15 May 2009 12:42:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1263&amp;PID=4544#4544</guid>
  </item> 
 </channel>
</rss>