<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx</link><description>I recently got a question on how to implement IEditableCollectionView with GridViewColumns that are dynamically created. Creating the columns dynamically actually doesn’t really have a big impact on IEditableCollectionView implementation. I have a sample</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8556497</link><pubDate>Wed, 28 May 2008 15:20:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556497</guid><dc:creator>Need Info</dc:creator><description>&lt;p&gt;where can i find demo on the new features of .net framework sp1?&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8556510</link><pubDate>Wed, 28 May 2008 15:41:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8556510</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Currently there is no official demo. &amp;nbsp;There are a lot of blogs out with samples and tutorials though. &amp;nbsp;I'm currently surveying many of the new features relating to controls and tree services. &amp;nbsp;Greg Schechter is doing an awesome blog series on the new effects in SP1, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/greg_schechter/archive/2008/05/12/a-series-on-gpu-based-effects-for-wpf.aspx"&gt;http://blogs.msdn.com/greg_schechter/archive/2008/05/12/a-series-on-gpu-based-effects-for-wpf.aspx&lt;/a&gt;. &amp;nbsp;Marlon Grech also has a nice sample out using new effects, &lt;a rel="nofollow" target="_new" href="http://marlongrech.wordpress.com/2008/05/15/effects-in-net-sp1-for-wpf/"&gt;http://marlongrech.wordpress.com/2008/05/15/effects-in-net-sp1-for-wpf/&lt;/a&gt;. &amp;nbsp;When SP1 RTM's there will be a good deal of documentation and samples out on msdn.&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8594130</link><pubDate>Fri, 13 Jun 2008 09:16:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8594130</guid><dc:creator>Jackie</dc:creator><description>&lt;p&gt;If there is no inital row in the grid, it won't work. Because the iecv.CanAddNew is false. If there is more than 1 rows, it work well. How to resolve this issue?&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8602002</link><pubDate>Mon, 16 Jun 2008 00:50:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8602002</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;This issue crops up when you are using a collection where the type cannot be known ahead of time and there are no items in the collection. &amp;nbsp;So lets say I have my collection like in the example,&lt;/p&gt;
&lt;p&gt;class Products : ObservableCollection&amp;lt;Product&amp;gt;&lt;/p&gt;
&lt;p&gt;When there are existing items in the collection, the underlying ListCollectionView can infer the type being used through one of the existing items. &amp;nbsp;However, when there are no items in the collection, it cannot do this. &amp;nbsp;One workaround around this is to use a generic collection explicitly. &amp;nbsp;So instead, if I use ObservableCollection&amp;lt;Product&amp;gt; directly instead of subclassing. &amp;nbsp;The ListCollectionView will be able to infer the type it is working with even if there are no members in the collection as it is a generic collection with the type set. &amp;nbsp;Note also that it expects the data item to have a default constructor. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;So to recap, iecv.CanAddNew for a ListCollectionView will be true when:&lt;/p&gt;
&lt;p&gt;1. &amp;nbsp;collection is not currently being edited&lt;/p&gt;
&lt;p&gt;2. &amp;nbsp;the source list is not fixed (IList.IsFixedSize)&lt;/p&gt;
&lt;p&gt;3. &amp;nbsp;can construct the item&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;a. can infer the type of data item to create&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;b. the data item has a default constructor&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8865927</link><pubDate>Thu, 14 Aug 2008 12:23:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8865927</guid><dc:creator>Julie</dc:creator><description>&lt;p&gt;&amp;quot;ListCollectionView will be able to infer the type ...&amp;quot; obviously, only if that type stands for a class, not an interface.&lt;/p&gt;
&lt;p&gt;Doesn't that imply, under the present assumptions, that when using ObservableCollection&amp;lt;ISomething&amp;gt; in the business domain, as it is customary to work with interfaces, such construction will not work with a DataGrid NewItemPlaceHolder in the presentation layer ? Also, 'last minute' casting that business collection to observableCollection&amp;lt;Something&amp;gt; in the view is invalid, as per the rules of generic collections.&lt;/p&gt;
&lt;p&gt;Kind regards, Julie&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8866884</link><pubDate>Thu, 14 Aug 2008 17:18:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8866884</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;One workaround is to derive from ObservableCollection&amp;lt;ISomething&amp;gt; and start with a non-empty list. For example:&lt;/p&gt;
&lt;p&gt;public class Products : ObservableCollection&amp;lt;IProduct&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Products()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;Pro WPF in C# 2008&amp;quot;, &amp;quot;Matthew MacDonald&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;Window Presentation Foundation Unleashed&amp;quot;, &amp;quot;Adam Nathan&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;Programming WPF&amp;quot;, &amp;quot;Chris Sells and and Ian Griffiths&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;WPF Programming&amp;quot;, &amp;quot;Chris Andrade, Shawn Livermore, Mike Meyers, and Scott Van Vliet&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;3D Programming For Windows&amp;quot;, &amp;quot;Charles Petzold&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;Applications = Code + Markup&amp;quot;, &amp;quot;Charles Petzold&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;Practical WPF Graphics Programming&amp;quot;, &amp;quot;Jack Xu&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add((new Product(&amp;quot;Essential Windows Presentation Foundation&amp;quot;, &amp;quot;Chris Anderson&amp;quot;, 49.99)));&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;where Product implements IProduct. &amp;nbsp;You do have to have a non-empty collection to begin with. &amp;nbsp;Since you derive from ObservableCollection&amp;lt;T&amp;gt; the ListViewCollectionView code will not try to construct the new object with the generic argument (IProduct) and instead will try to get a representative type by actually querying for an item in the list. &amp;nbsp;In this case it will return a type of Product which as long as there is a default constructor will create the new item for you.&lt;/p&gt;
&lt;p&gt;With just ObservableCollection&amp;lt;T&amp;gt;, the framework has to query for the type it has and use reflection to construct it. &amp;nbsp;If it's an interface it cannot just construct the item solely based on that information.&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8867098</link><pubDate>Thu, 14 Aug 2008 18:33:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8867098</guid><dc:creator>Julie</dc:creator><description>&lt;p&gt;I agree with your conclusions. This leaves us, I think, with the following remarks:&lt;/p&gt;
&lt;p&gt;-	The above &amp;nbsp;is indeed a work around that requires the application to provide a non-empty collection: not always feasible.&lt;/p&gt;
&lt;p&gt;	This would imply that, for those ‘empty list with interface type’ situations, the DataGrid would have to provide (e.g.) a protected method to overwrite where we can provide a new instance of the desired class.&lt;/p&gt;
&lt;p&gt;-	The decision to cast first according to the declared type, then by reflection, is a “non-documented” feature we have to live with: it could as well be the other way around. &lt;/p&gt;
&lt;p&gt;Thanks for your very nice introduction material. It helps considerably, Julie.&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8878611</link><pubDate>Tue, 19 Aug 2008 15:26:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878611</guid><dc:creator>John Bucci</dc:creator><description>&lt;p&gt;Having some difficulty using a NewItemPlaceholderPosition that is not None. For example, if I set the position to AtEnd, the row displays as expected at the end of the ListView yet not in an editable state where the user can actually enter data. &amp;nbsp;Is there some property setter or action that must be performed before the user can enter data in the placeholder row?&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8878839</link><pubDate>Tue, 19 Aug 2008 17:21:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878839</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Assuming you are using my sample, here is one example of how you can enable this. &amp;nbsp;First of all, the entry points to edit an item or add a new item in the sample are through the Add button and the begin edit command (F2). &amp;nbsp;If I were to change the placeholder position to AtEnd, one thing I can do is update the BeginEdit logic to allow adding as well:&lt;/p&gt;
&lt;p&gt;private static void OnExecutedBeginEdit(object sender, ExecutedRoutedEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ListView lv = (sender as Window1).itemsList;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (lv.Items[lv.SelectedIndex] == CollectionView.NewItemPlaceholder)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(sender as Window1).AddItem();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(sender as Window1).EditItem();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;e.Handled = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;So if you press F2 on the NewItemPlaceHolder, it will update to an editable state. &amp;nbsp;So basically, it's up to you to define the necessary commands or entry points and once you've done that you call iecv.AddNew() to actually populate your collection.&lt;/p&gt;
</description></item><item><title>BindingGroups and IEditableCollectionView</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8888162</link><pubDate>Fri, 22 Aug 2008 19:25:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8888162</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;Recap In a previous post I introduced the BindingGroups. Well now I want to get into some of the things&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8926890</link><pubDate>Fri, 05 Sep 2008 23:33:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8926890</guid><dc:creator>Keoz</dc:creator><description>&lt;p&gt;Hi, could you explain me how can i mannually begin an edit on a DataGrid cell? i want to start editing a cell when i click a button, are you going to post an example using IEditableCollectionView and DataGrid? thanks&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8926952</link><pubDate>Sat, 06 Sep 2008 00:37:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8926952</guid><dc:creator>keoz</dc:creator><description>&lt;p&gt;Hi i have managed to manually open a cell for editing in a DataGrid from WPF Toolkit using your helper functions in one of your DataGrid examples (thanks a lot for those examples!) enabling it for editing with IsEditing property however i notice the BeginningEdit event is not fired using this technique only when i double click the cell, how can i fire this event when i open the cell for editing manually?, however i guess this is not a problem because im using custom logic for editing using an IEditableCollectionView, is it true? thanks&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8927042</link><pubDate>Sat, 06 Sep 2008 01:44:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8927042</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Keoz,&lt;/p&gt;
&lt;p&gt;If you want to get the same capabilities for editing as a double-click but through code, you can select the specific cell, then call dataGrid.BeginEdit(). &amp;nbsp;This should fire the BeginningEdit event. &amp;nbsp;I would suggest sticking to this instead of settings IsEditing and using custom logic with the collection view unless you have a good understanding of the editing implementation in DataGrid (it really depends how much customzing you are doing though so it can be ok).&lt;/p&gt;
&lt;p&gt;For an example post of IECV and DataGrid, is there anything in particular you are looking for? &amp;nbsp;DataGrid already makes use of IECV in its implementation.&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8934003</link><pubDate>Mon, 08 Sep 2008 19:43:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8934003</guid><dc:creator>keoz</dc:creator><description>&lt;p&gt;Hi thanks for your answer, this is part of the code im using&lt;/p&gt;
&lt;p&gt;iecv.EditItem(ClientesGrid.SelectedItem);&lt;/p&gt;
&lt;p&gt;foreach (DataGridCellInfo info in ClientesGrid.SelectedCells)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;GetCell(ClientesGrid.Items.CurrentPosition, ClientesGrid.Columns.IndexOf(info.Column)).IsEditing = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;ClientesGrid.BeginEdit();&lt;/p&gt;
&lt;p&gt;this is handler of a button i want to use when the user wants to edit a record, however the BeginEdit() command does not fire the BeginingEdit event, im using kind of custom logic using an IECV and an observable collection filled with objects obtained from xml data so thats why im using another IECV because in other way I could not edit the grid could I? &lt;/p&gt;
&lt;p&gt;Here im using your GetCell method to open all the cells in the grid for editing, however i still need to find a way to let the cells be open for editing still if the user changes his selection&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8934761</link><pubDate>Mon, 08 Sep 2008 23:37:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8934761</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;keoz,&lt;/p&gt;
&lt;p&gt;I'm not sure you have to call iecv.EditItem or set each cell's IsEditing property to true. &amp;nbsp;calling Grid.BeginEdit() on what is selected should be good enough.&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#8937124</link><pubDate>Tue, 09 Sep 2008 20:53:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8937124</guid><dc:creator>keoz</dc:creator><description>&lt;p&gt;i think that a cell edition will change the contents of the cell but not change the collection behind it and since my iecv is a copy of the collection i need to do both editing the cell and when finished editing, copy the contents of the edited cell to the iecv item but im not sure if this is really a copy&lt;/p&gt;
&lt;p&gt;its like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ICollectionView view = CollectionViewSource.GetDefaultView(ClientesGrid.Items);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;iecv = (IEditableCollectionView)view;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;iecv.NewItemPlaceholderPosition = NewItemPlaceholderPosition.None;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;btw i had alrady post some code but server ate it im afraid :( i explained how i managed to let the cells open until pressing the &amp;quot;accept changes&amp;quot; button&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#9024209</link><pubDate>Thu, 30 Oct 2008 13:54:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024209</guid><dc:creator>marco.ragogna</dc:creator><description>&lt;p&gt;Thanks for sharing, I found your code very useful.&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#9024313</link><pubDate>Thu, 30 Oct 2008 15:11:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024313</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Marco,&lt;/p&gt;
&lt;p&gt;You are very welcome.&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#9837118</link><pubDate>Fri, 17 Jul 2009 13:10:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9837118</guid><dc:creator>Tobias</dc:creator><description>&lt;p&gt;Regarding Julie's post: If you derive from ObservableCollection&amp;lt;T&amp;gt; like this&lt;/p&gt;
&lt;p&gt;PersonsList : ObservableCollection&amp;lt;Person&amp;gt;&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;you will find out that if the initial collection is empty, there won't be a NewItemPlaceHolder showing up on the view. That's because PersonsList cannot resolve type T at design time. A workaround that works for me is to pass type T as a parameter into the class like this&lt;/p&gt;
&lt;p&gt;PersonsList&amp;lt;T&amp;gt; : ObservableCollection&amp;lt;T&amp;gt; where T : Person&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;This approach will place the NewItemPlaceHolder even if the collection is empty.&lt;/p&gt;</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#9837302</link><pubDate>Fri, 17 Jul 2009 15:01:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9837302</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Tobias,&lt;/p&gt;
&lt;p&gt;That's right, nice work there. &amp;nbsp;With that, it answers your other question about the new item placeholder with no items present.&lt;/p&gt;
</description></item><item><title>re: Using IEditableCollectionView with dynamically generated GridViewColumns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx#9910300</link><pubDate>Wed, 21 Oct 2009 02:05:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9910300</guid><dc:creator>Marcus</dc:creator><description>&lt;p&gt;Regarding:&lt;/p&gt;
&lt;p&gt;PersonsList&amp;lt;T&amp;gt; : ObservableCollection&amp;lt;T&amp;gt; where T : Person&lt;/p&gt;
&lt;p&gt;Can anyone think of a way to do this in VB?&lt;/p&gt;</description></item></channel></rss>