<?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 : Editable Grid Controls</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Editable Grid Controls</description>
  <pubDate>Thu, 30 Jul 2026 00:46:28 -700</pubDate>
  <lastBuildDate>Tue, 24 May 2011 17:30:28 -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=2712</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>Editable Grid Controls : You should be able to set the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10815#10815</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> 2712<br /><strong>Posted:</strong> 24-May-2011 at 5:30pm<br /><br />You should be able to set the UltraGrid.DataSource property to a .NET BindingSource (which satisfies the editable collection requirement).<div><br></div><div>Infragistics certainly supports the IBindingList interface, which is implemented on the BindingSource, but I don't know if it uses the AddingNew event. You might have to implement BeforeRowInsert as you pointed out.</div><div><br></div><div>I'm not seeing any interface on the DataTable that does this either. They probably coded specifically for the DataTable and call NewRow on it. You'll probably need to implement BeforeRowInsert&nbsp;for any non-DataTable source.</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 24 May 2011 17:30:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10815#10815</guid>
  </item> 
  <item>
   <title>Editable Grid Controls : I was afraid you were going to...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10813#10813</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1151" rel="nofollow">Randar</a><br /><strong>Subject:</strong> 2712<br /><strong>Posted:</strong> 24-May-2011 at 4:48pm<br /><br />I was afraid you were going to say that.&nbsp; The problem is that this version of UltraGrid does not have a BindingSource or an AddingNew event.&nbsp; But, it does have a BeforeRowInsert event (http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/Infragistics2.Win.UltraWinGrid.v10.2~Infragistics.Win.UltraWinGrid.UltraGrid~BeforeRowInsert_EV.html), which is functionally equivalent (I hope).&nbsp; It just means that we'll have to change each one of the controls to implement this method.&nbsp; A bit of work I had hoped to avoid, but at least it lays out the concept on how to handle inserting records with DF.<br><br>Thanks for the insight.<br>]]>
   </description>
   <pubDate>Tue, 24 May 2011 16:48:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10813#10813</guid>
  </item> 
  <item>
   <title>Editable Grid Controls : Hi Randar,Typically, you just...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10811#10811</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> 2712<br /><strong>Posted:</strong> 24-May-2011 at 4:35pm<br /><br />Hi Randar,<div><br></div><div>Typically, you just add the entities to an ObservableCollection (WPF) or BindingSource (WinForms):</div><div><br></div><div>Using the synchronous API:</div><div><br></div><div><div>&nbsp; var employees = manager.Employees.Execute();</div><div>&nbsp; employees.ForEach(collection.Add);</div><div><br></div><div>Using the asynchronous API:</div><div><br></div><div>&nbsp; manager.Employees.ExecuteAsync&lt;Employee&gt;(op =&gt; {</div><div>&nbsp; &nbsp; var employees = op.Results;</div><div>&nbsp; &nbsp; employees.ForEach(collection.Add);</div><div>&nbsp; });</div></div><div><br></div><div>To get the add new row functionality in WinForms, you should attach a handler to the BindingSource.AddingNew event and in the event, create the Entity and assign it to the NewObject property of the EventArgs:</div><div><a href="http://msdn.microsoft.com/en-us/library/system.windows.&#102;orms.bindingsource.addingnew.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/system.windows.forms.bindingsource.addingnew.aspx</a></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 24 May 2011 16:35:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10811#10811</guid>
  </item> 
  <item>
   <title>Editable Grid Controls :  I&amp;#039;ve got a problem and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10810#10810</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1151" rel="nofollow">Randar</a><br /><strong>Subject:</strong> 2712<br /><strong>Posted:</strong> 24-May-2011 at 2:35pm<br /><br />I've got a problem and I'm not sure what the right approach is.&nbsp; We've got a large number of UltraGrids (from Infragistics) that used to bind to DataTables.&nbsp; We want to bind them to DevForce instead.&nbsp; The problem (which applies to DataGrids as well), is that EntityManager-&gt;ExecuteQuery returns IEnumerable, which does not support adding items.&nbsp; So when you click on the grid area to add new items, you get:<br><br><i>Unable to add new row.&nbsp; Underlying DataSource does not support adding new rows</i><br><br>It would be a considerable amount of effort to move to a different paradigm, so I hope there is a way to get a read/write collection (e.g. IList or IBindingList) from the EntityManager that I could bind to the UltraGrids.<br><br>What is the best way to do this?<br><br><span style="font-size:10px"><br /><br />Edited by Randar - 24-May-2011 at 2:59pm</span>]]>
   </description>
   <pubDate>Tue, 24 May 2011 14:35:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2712&amp;PID=10810#10810</guid>
  </item> 
 </channel>
</rss>