<?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 : UsingAGridBuilder</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : UsingAGridBuilder</description>
  <pubDate>Tue, 21 Apr 2026 22:12:30 -700</pubDate>
  <lastBuildDate>Tue, 27 Jul 2010 07:02:21 -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=1850</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>UsingAGridBuilder : I now made a complete new EDMX...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7815#7815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=595" rel="nofollow">sky40627</a><br /><strong>Subject:</strong> 1850<br /><strong>Posted:</strong> 27-Jul-2010 at 7:02am<br /><br />I now made a complete new EDMX was a hell of a job, and i made some improvements.<DIV>&nbsp;</DIV><DIV>Now I only seem to have the problem when the entity is inherited.</DIV><DIV>&nbsp;</DIV><DIV>Employee.Commissioncode.Procent</DIV><DIV>&nbsp;</DIV><DIV>where Commissioncode is inherited from a Basecode (<FONT size=2 face=Arial>TPH).</FONT></DIV><DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 27 Jul 2010 07:02:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7815#7815</guid>
  </item> 
  <item>
   <title>UsingAGridBuilder : Hi Sky,  We just saw a similar...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7599#7599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1850<br /><strong>Posted:</strong> 12-Jul-2010 at 7:30pm<br /><br />Hi Sky,<DIV>&nbsp;</DIV><DIV>We just saw a similar issue from another customer.&nbsp; You can get the "Index was outside the bounds of the array" error if the foreign key references are missing from the EDMX.&nbsp; I went back and looked at the solution you submitted and noticed that most of the foreign key references were not present, including the SupplierID on the Product entity.</DIV><DIV>&nbsp;</DIV><DIV>Did you try to convert this from a .NET 3.5 Entity Framework model (not a good idea) or did you build it from scratch using the Entity Framework in&nbsp;.NET 4.0?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 12 Jul 2010 19:30:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7599#7599</guid>
  </item> 
  <item>
   <title>UsingAGridBuilder : this is my loaddata private BindableList&amp;lt;Employee&amp;gt;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7590#7590</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=595" rel="nofollow">sky40627</a><br /><strong>Subject:</strong> 1850<br /><strong>Posted:</strong> 12-Jul-2010 at 1:52am<br /><br />this is my loaddata<DIV>private BindableList&lt;Employee&gt; _employees = new BindableList&lt;Employee&gt;();</DIV><DIV>var query = _em.BasePersons<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(Employee.PathFor(sa =&gt; sa.CommissionCode))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(Employee.PathFor(sa =&gt; sa.SalesInvoiceAgents))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(Employee.PathFor(sa =&gt; sa.Address))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Include(Employee.PathFor(sa =&gt; sa.Address.Country))&nbsp; &lt;-- the moment i include this it fails<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .OfType&lt;Employee&gt;();</DIV><DIV>_employees.ReplaceRange(query.ToList());</DIV><DIV>&nbsp;</DIV><DIV>I made sure every employee had an address and each address has a country assigned to it</DIV><DIV>&nbsp;</DIV><DIV>Then I create my grid and bind the data</DIV><DIV>&nbsp;</DIV><DIV>GridControl employeeGridControl;<BR>&nbsp;XtraGridBindingManager bindingManager;<BR>_GridBuilder2.CreateGrid(out employeeGridControl, out bindingManager,&nbsp; _employeeBS, typeof(Employee));</DIV><DIV>&nbsp;</DIV><DIV>_GridBuilder2.AddColumn(bindingManager, Employee.PathFor(e =&gt; e.Name));<BR>_GridBuilder2.AddColumn(bindingManager, Employee.PathFor(e =&gt; e.CommissionCode.AlfaCode));<BR>_GridBuilder2.AddColumn(bindingManager, Employee.PathFor(e =&gt; e.NumberOfUnpaidInvoices));<BR>_GridBuilder2.AddColumn(bindingManager, Employee.PathFor(e =&gt; e.Address.City));<BR>_GridBuilder2.AddColumn(bindingManager, Employee.PathFor(e =&gt; e.Address.Country.NameNld));</DIV><DIV>&nbsp;</DIV><DIV>I had the same problem before with other data and then I could resolve the problem by adding an include in the loaddata of the extra data needed</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 12 Jul 2010 01:52:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7590#7590</guid>
  </item> 
  <item>
   <title>UsingAGridBuilder : Hi Sky -The application you sent...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7085#7085</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1850<br /><strong>Posted:</strong> 27-May-2010 at 8:09pm<br /><br />Hi Sky -&nbsp;The application you sent over is too large for us to tell what is going on.&nbsp; You'll need to simplify the the solution - perhaps to just those two related&nbsp;objects so that we can take a look.]]>
   </description>
   <pubDate>Thu, 27 May 2010 20:09:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7085#7085</guid>
  </item> 
  <item>
   <title>UsingAGridBuilder : I converted this application to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7074#7074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=595" rel="nofollow">sky40627</a><br /><strong>Subject:</strong> 1850<br /><strong>Posted:</strong> 27-May-2010 at 12:26am<br /><br />I converted this application to vs 2010 and devforce 2010<DIV>&nbsp;</DIV><DIV>Now i have an error wen accessing an navigational property for ex. Product.Supplier</DIV><DIV>&nbsp;</DIV><DIV>{"Index was outside the bounds of the array."}</DIV><DIV>&nbsp;</DIV><DIV>I have this problem with all my apps i ported to vs 2010</DIV><DIV>&nbsp;</DIV><DIV>Where does this come from ?</DIV><DIV>&nbsp;</DIV><DIV>StackTrace :</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.&lt;&gt;c__DisplayClass7.&lt;BuildMultiEqualExpr&gt;b__6(MemberExpression expr, Int32 i)<BR>&nbsp;&nbsp; at System.Linq.Enumerable.&lt;SelectIterator&gt;d__7`2.MoveNext()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.And(IEnumerable`1 expressions)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.BuildMultiEqualExpr(IEnumerable`1 propExpressions, Object&#091;&#093; values)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.&lt;&gt;c__DisplayClass4.&lt;BuildLambdaKeyQuery&gt;b__3(EntityKey key)<BR>&nbsp;&nbsp; at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.Or(IEnumerable`1 expressions)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.BuildLambdaKeyQuery(IEnumerable`1 keys)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityQueryBuilder.BuildQuery(IEnumerable`1 keys)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityKeyFinder.Execute()<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.ExecuteQueryCore(IEntityQuery query, Boolean isAsync)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.EntityManager.FirstOrNullEntity(IEntityQuery query)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.QueryForEntity(EntityReferenceStrategy strategy)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.ScalarEntityReference`1.GetEntity(EntityReferenceStrategy strategy)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.NavigationScalarEntityProperty`2.&lt;.ctor&gt;b__0(NavigationEntityPropertyGetInterceptorArgs`2 args)<BR>&nbsp;&nbsp; at IdeaBlade.Core.PropertyInterceptor`3.HandleAction(Action`1 action, TArgs args)<BR>&nbsp;&nbsp; at IdeaBlade.Core.PropertyInterceptor`3.&lt;BuildTargetedCombinedAction&gt;b__3(TArgs args)<BR>&nbsp;&nbsp; at IdeaBlade.Core.PropertyInterceptor`3.ExecuteActions(TArgs args)<BR>&nbsp;&nbsp; at IdeaBlade.Core.PropertyInterceptor`3.GetValue(TInstance instance, Object context)<BR>&nbsp;&nbsp; at IdeaBlade.EntityModel.NavigationScalarEntityProperty`2.GetValue(TInstance instance)<BR>&nbsp;&nbsp; at ServerModelNorthwindIB.Employee.get_Manager() in C:\Users\Public\Documents\DevForce 2010\Learning Resources\200WNF_GridBuilder\CodeCS\ServerModelNorthwindIB\ServerModelNorthwindIB.IB.Designer.cs:line 713</DIV>]]>
   </description>
   <pubDate>Thu, 27 May 2010 00:26:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1850&amp;PID=7074#7074</guid>
  </item> 
 </channel>
</rss>