<?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 : [Solved]Adding Grids to View</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : [Solved]Adding Grids to View</description>
  <pubDate>Thu, 11 Jun 2026 18:08:32 -700</pubDate>
  <lastBuildDate>Fri, 21 Sep 2007 09:36:29 -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=436</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>[Solved]Adding Grids to View : See Process for creating new Base...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1266#1266</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 21-Sep-2007 at 9:36am<br /><br />See <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=443" target="_blank"><FONT color=#810081>Process for creating new Base View?</FONT></A>]]>
   </description>
   <pubDate>Fri, 21 Sep 2007 09:36:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1266#1266</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : If I try to add the ActionsControl,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1237#1237</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 20-Sep-2007 at 9:23am<br /><br />If I try to add the ActionsControl, which just contains 2 buttons, it fails. It acts as if the it does know the areas in the View exist, ActionWorkspace == null. <DIV>&nbsp;</DIV><DIV>In the Foundation.ThreePanelView I have the following:</DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> SetSmartPartPlaceHolderNames() {</P><P></FONT><FONT color=#008000 size=2>// Critical! Must set SmartPartPlaceHolder name immediately or mysterious exception during create.</P></FONT><FONT size=2><P>mAvailableSmartPartPlaceholder.SmartPartName = </FONT><FONT color=#2b91af size=2>WorkspaceNames</FONT><FONT size=2>.AvailableSmartPartPlaceholder;</P><P>mActionSmartPartPlaceHolder.SmartPartName = </FONT><FONT color=#2b91af size=2>WorkspaceNames</FONT><FONT size=2>.ActionSmartPartPlaceholder;</P><P>mAvailableSmartPartPlaceholder.SmartPartName = </FONT><FONT color=#2b91af size=2>WorkspaceNames</FONT><FONT size=2>.AssignedSmartPartPlaceholder;</P><P>}</P><DIV></DIV><P>In the tab controller I am trying to add the control to the Workspace.ActionSmartPartPlaceholder</P><DIV></DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>IWorkspace</FONT><FONT size=2> ActionWorkspace</P><P>{</P><P></FONT><FONT color=#0000ff size=2>get</FONT><FONT size=2> { </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> WorkItem.Workspaces&#091;</FONT><FONT color=#2b91af size=2>WorkspaceNames</FONT><FONT size=2>.ActionSmartPartPlaceholder&#093;; }</P><P>}</P><DIV><DIV></DIV><DIV></DIV><FONT size=2></FONT><FONT color=#2b91af size=2><FONT color=#0000ff size=2><P>public</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>override</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2><FONT color=#000000> CreateView()</FONT></P><P>{ ...(snip)...</P></FONT>ActionButtonsView</FONT><FONT size=2> mActionButtonView = WorkItem.SmartParts.AddNew&lt;</FONT><FONT color=#2b91af size=2>ActionButtonsView</FONT><FONT size=2>&gt;();</DIV><P>ActionWorkspace.Show(mActionButtonView);</P><DIV></DIV><DIV></DIV></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 20 Sep 2007 09:23:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1237#1237</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : I am using the exact same code...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1228#1228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 1:54pm<br /><br />I am using the exact same code for my gridview tab controller and it loads just fine. The only difference is I do not work with w/ the workitem.<DIV>&nbsp;</DIV><DIV>I use CreateView&lt;UserRolesGridView&gt;();</DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 13:54:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1228#1228</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View :  This is what I have. It comes...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1227#1227</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 1:17pm<br /><br /><FONT color=#0000ff size=2><DIV><FONT color=#000000>This is what I have. It comes back saying : <FONT size=2><P>The item type of the BindingSource that you selected &#091;LOC.CEMS.Model.User&#093; does not match the BoundType of this BindingManager &#091;LOC.CEMS.Model.Role&#093;.</P></FONT></FONT></DIV><DIV>&nbsp;</DIV><DIV>public</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>override</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> CreateView()</DIV><P>{</P><P>mBindingSource =</P><P></FONT><FONT color=#0000ff size=2>new</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>EntityBindingSource</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>typeof</FONT><FONT size=2>(</FONT><FONT color=#2b91af size=2>Role</FONT><FONT size=2>), EntityManager, mEmptyList, </FONT><FONT color=#2b91af size=2>String</FONT><FONT size=2>.Empty);</P><P>ViewId = </FONT><FONT color=#a31515 size=2>"UserRolesGridView"</FONT><FONT size=2>;</P><P></FONT><FONT color=#008000 size=2>//Choose DetailRoleGrid</P></FONT><FONT size=2><P></FONT><FONT color=#2b91af size=2>IGridBuilderService</FONT><FONT size=2> pGridBuilderService = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.WorkItem.Services.Get&lt;</FONT><FONT color=#2b91af size=2>IGridBuilderService</FONT><FONT size=2>&gt;();</P><P></FONT><FONT color=#2b91af size=2>GridBuilderBase</FONT><FONT size=2> pGridBulderProtoType = pGridBuilderService.Get(</FONT><FONT color=#a31515 size=2>"DetailRole"</FONT><FONT size=2>);</P><P></P><P></FONT><FONT color=#2b91af size=2>GridViewContext</FONT><FONT size=2> detailRoles = </FONT><FONT color=#2b91af size=2>GridViewContext</FONT><FONT size=2>.AddNew(WorkItem, ViewId, mBindingSource);</P><P>detailRoles.GridBuilderPrototype = pGridBulderProtoType;</P><P></P><P></FONT><P><FONT color=#008000 size=2></P></FONT><FONT size=2>WorkItem.Workspaces&#091;</FONT><FONT color=#2b91af size=2>WorkspaceNames</FONT><FONT size=2>.AssignedWorkspace&#093;.Show(WorkItem.SmartParts.AddNew&lt;</FONT><FONT color=#2b91af size=2>UserRolesGridView</FONT><FONT size=2>&gt;());</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 13:17:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1227#1227</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : In your tab view controller, you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1226#1226</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 1:07pm<br /><br /><P>In your tab view controller, you should create a GridViewContext for each detail view and add it to the workitem (see MasterDetailTabViewController.cs in IdeaBlade.Cab.UI for an example).&nbsp; </P><DIV>In the GridViewContext you pass the binding source for the Grid.&nbsp;&nbsp; For the example you mentioned, this should be an EntityList of Role objects.</DIV><DIV>&nbsp;</DIV><DIV>Bill J.</DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 13:07:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1226#1226</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : The UserSummaryPage is the base...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1224#1224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 12:42pm<br /><br />The UserSummaryPage is the base page. I am trying to add the view with the 3 place holders to a tab (ManageUserRolesTabController).<DIV>&nbsp;</DIV><DIV>The 3 place holders control is called ManageUserRolesView.</DIV><DIV>&nbsp;</DIV><DIV>I have tried adding the code to populate the three place holders in the ManageUserRolesTabController that the view is on.</DIV><DIV>&nbsp;</DIV><DIV>I get that the types do not match.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 12:42:16 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1224#1224</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : Is your &amp;#034;UserSummaryPage&amp;#034;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1219#1219</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 11:53am<br /><br /><P>Is your "UserSummaryPage" the page that will contain the three SmartPartPlaceHolders?&nbsp; </P><DIV>If so, then shouldn't the code to populate them be in the UserSummaryPageController?</DIV><DIV>&nbsp;</DIV><DIV>What does UserSummaryPageController inherit from?</DIV><DIV>&nbsp;</DIV><DIV>Bill J.</DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 11:53:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1219#1219</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : I also tried putting it in the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1218#1218</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 11:36am<br /><br />I also tried putting it in the tab controller but it gives me an error saying the types don't match. The page type is User the tab is UserRole. It is saying :<DIV>{"The item type of the BindingSource that you selected &#091;LOC.CEMS.Model.User&#093; does not match&nbsp; the BoundType of this BindingManager &#091;LOC.CEMS.Model.Role&#093;."}</DIV><DIV>&nbsp;</DIV><DIV>I am only trying to load an existing grid into one of the smartpart placeholders on the view. I have another tab with the same grid that is loading fine.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 11:36:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1218#1218</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : I tried to add one of my gridviews...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1217#1217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 11:22am<br /><br />I tried to add one of my gridviews to the new three panel view. Using the same tech. as the Spash module. By placing code in the module controller.<DIV>&nbsp;</DIV><DIV>This did not work. I can't figure out how to add any other views/grids to my new view.</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV><FONT size=2></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> ShowUserSummaryPagePageHandler(</FONT><FONT color=#2b91af size=2>Object</FONT><FONT size=2> sender, </FONT><FONT color=#2b91af size=2>EventArgs</FONT><FONT size=2> e)</FONT></DIV><DIV><FONT size=2>{</FONT></DIV><DIV><FONT color=#2b91af size=2>UserSummaryPageController</FONT><FONT size=2>.ShowPage(WorkItem, </FONT><FONT color=#2b91af size=2>ViewNames</FONT><FONT size=2>.UserSummaryPage, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>.Workspace);</DIV><P>AvailableWorkspace.Show(mAssignedRoles);</P><DIV>}&nbsp;</DIV></FONT><P><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> AddViews(){mAssignedRoles = WorkItem.SmartParts.AddNew&lt;</FONT><FONT color=#2b91af size=2>UserRolesGridView</FONT><FONT size=2>&gt;();}</P></FONT><FONT size=2><DIV></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>IWorkspace</FONT><FONT size=2> AvailableWorkspace{</DIV><P></FONT><FONT color=#0000ff size=2>get</FONT><FONT size=2> { </FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> WorkItem.Workspaces&#091;</FONT><FONT color=#2b91af size=2>WorkspaceNames</FONT><FONT size=2>.AvailableWorkspace&#093;; }</P><P>}</FONT><FONT color=#0000ff size=2></P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#2b91af size=2>UserRolesGridView</FONT><FONT size=2> mAssignedRoles;</P></FONT><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 11:22:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1217#1217</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : I have placed that View in the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1215#1215</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 7:55am<br /><br />I have placed that View in the Foundation.Views Folder of my project.<span style="font-size:10px"><br /><br />Edited by orcities - 19-Sep-2007 at 7:55am</span>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 07:55:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1215#1215</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : I have made a view with three...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1214#1214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 19-Sep-2007 at 7:55am<br /><br />I have made a view with three smartpartplaceholder controls. Now how do I add other views to it?<DIV>&nbsp;</DIV><DIV>The presenter for the ControlViewPresenter doesn't have a CreateView method to override. </DIV>]]>
   </description>
   <pubDate>Wed, 19 Sep 2007 07:55:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1214#1214</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : While you can certainly proceed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1211#1211</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=97" rel="nofollow">Bill Jensen</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 18-Sep-2007 at 5:27pm<br /><br />While you can certainly proceed in the way you suggest, we'd advise a somewhat different approach.&nbsp; Rather than mixing controls and other views in a single view, Cabana emphasizes separation between "layout" views that only contain other views and defined the "floor" plan of the UI, and "widget" views that contain only controls that bind to data.<DIV>&nbsp;</DIV><DIV>If the layout views supplied with Cabana don't meet your needs, you can create your own, using the Cabana examples as a model.&nbsp; A layout view typically comes with a view or page controller that can be subclassed for different purposes.&nbsp;&nbsp; Often you override methods such as "CreateView()" or "CreateSummaryView()" to supply the views to be displayed in various parts of the layout.</DIV><DIV>&nbsp;</DIV><DIV>Moreover, grids and loose controls have different data binding requirements, so we recommend separating them into separate views.</DIV><DIV>&nbsp;</DIV><DIV>For control views containing action buttons (or which require actions on other events), you can create a custom presenter and inject it into the view.&nbsp; The view fields events from controls but performs little or no processing, instead invoking methods on the presenter.&nbsp; If the presenter must control or transfer information to the view, you have&nbsp;a couple of options:</DIV><DIV>&nbsp;</DIV><DIV>1.&nbsp; You can provide a custom interface to the view (extending IBindingView) that the presenter knows about.&nbsp; </DIV><DIV>&nbsp;</DIV><DIV>2.&nbsp; A better mechanism that reduces the presenter's dependence on the view is to let the view register one or more delegates with the presenter to be called to invoke functions or set values in the view.&nbsp; This way, the interface is actually defined by the presenter, and it could actually serve multiple views.</DIV><DIV>&nbsp;</DIV><DIV>Hope this answers some of your questions.</DIV><DIV>&nbsp;</DIV><DIV>Bill J.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 18 Sep 2007 17:27:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1211#1211</guid>
  </item> 
  <item>
   <title>[Solved]Adding Grids to View : How do I go about adding a Grid...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1208#1208</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 436<br /><strong>Posted:</strong> 18-Sep-2007 at 3:28pm<br /><br /><P>How do I go about adding a Grid to a View.</P><P>I have a view with a SmartPartPlaceHolder docked at the top and bottom with buttons in a panel in the center.</P><P>How do I add a grid to the place holder?<BR>How do I hook up the buttons?</P><span style="font-size:10px"><br /><br />Edited by orcities - 21-Sep-2007 at 9:34am</span>]]>
   </description>
   <pubDate>Tue, 18 Sep 2007 15:28:34 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=436&amp;PID=1208#1208</guid>
  </item> 
 </channel>
</rss>