<?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>.NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx</link><description>UPDATE: the WPF DataGrid v1 has just released. For more information, see this post . The information below still applies, but the new post contains the additional features as well as an updated sample. Check it out! As you might have heard, .NET Framework</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>.NET 3.5 SP1 and WPF DataGrid CTP are out now! | Easycoded</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8849816</link><pubDate>Tue, 12 Aug 2008 06:28:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8849816</guid><dc:creator>.NET 3.5 SP1 and WPF DataGrid CTP are out now! | Easycoded</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.easycoded.com/net-35-sp1-and-wpf-datagrid-ctp-are-out-now"&gt;http://www.easycoded.com/net-35-sp1-and-wpf-datagrid-ctp-are-out-now&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>The WPF DataGrid is finally here!!!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8850091</link><pubDate>Tue, 12 Aug 2008 10:05:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8850091</guid><dc:creator>Rudi Grobler</dc:creator><description>&lt;p&gt;Well, their is a huge hype surrounding the release of .NET Framework 3.5 SP1 &amp;amp;amp; Visual Studio 2008&lt;/p&gt;
</description></item><item><title>A new WPF DataGrid in a CTP release</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8858803</link><pubDate>Wed, 13 Aug 2008 18:13:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8858803</guid><dc:creator>Dotmad (on .Net)</dc:creator><description>&lt;p&gt;When I reviewed some 3rd party WPF components out there I noticed the fact most of them showcased a datagrid&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8866311</link><pubDate>Thu, 14 Aug 2008 13:52:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8866311</guid><dc:creator>Josh Smith</dc:creator><description>&lt;p&gt;Vincent,&lt;/p&gt;
&lt;p&gt;I watched Samantha's video, and something struck me as odd. &amp;nbsp;Why is the DataGrid's HeaderVisibility property not of type Visibility? &amp;nbsp;Every other WPF property I can think of whose name ends with &amp;quot;Visibility&amp;quot; is of type Visibility. &amp;nbsp;I think that property should be renamed, perhaps to something like &amp;quot;Headers&amp;quot; or &amp;quot;VisibleHeaders&amp;quot;.&lt;/p&gt;
&lt;p&gt;Josh&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8866659</link><pubDate>Thu, 14 Aug 2008 16:15:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8866659</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Oh man, naming for DataGrid was a killer for us as we and the Silveright folks would sit in a conference room for an hour to an hour an a half on multiple occasions just discussing type, method, and event names. &amp;nbsp;For some things some people had lots of varying opinions and I can't remember the final reasoning for all of them. &amp;nbsp;For the Visibility enums, which was decided on early, I think we had a similar discussion that you brought up if I still remember. &amp;nbsp;Like I said, I don't remember the final reasoning but I actually prefer the word &amp;quot;Visibility&amp;quot; somewhere in the type name of the enum for the headers visibility. &amp;nbsp;Maybe DataGridHeadersVisibilityMode would have made it differ for other properties of type Visibility. &amp;nbsp;There are two other DataGrid types that follow a similar pattern, DataGridGridLinesVisibility and DataGridRowDetailsVisibilityMode. &amp;nbsp;I need to check back with Samantha on why that last one has a &amp;quot;Mode&amp;quot; on the end and the others do not.&lt;/p&gt;
&lt;p&gt;&amp;quot;VisibleHeaders&amp;quot; is an option which would be much different than &amp;quot;HeadersVisible&amp;quot; but I'm guessing you thought about that one and why it might confuse people into thinking it's of type bool like winform's DataGridView.ColumnHeadersVisible. &amp;nbsp;Let me talk with Samantha and a few others on your thoughts and also our reasoning behind our current decision. &amp;nbsp;I'll get back to you on it.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vince&lt;/p&gt;
</description></item><item><title>WPF DataGrid: Dissecting the Visual Layout</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8866962</link><pubDate>Thu, 14 Aug 2008 17:48:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8866962</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;I’m going to be dissecting and discussing the DataGrid visuals and how they are all assembled together&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8869820</link><pubDate>Fri, 15 Aug 2008 17:55:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8869820</guid><dc:creator>Joel "Jaykul" Bennett</dc:creator><description>&lt;p&gt;Can that sample be included in the stuff on CodePlex? Seems like it would be really helpful.&lt;/p&gt;</description></item><item><title>WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8878790</link><pubDate>Tue, 19 Aug 2008 17:07:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878790</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;Overview The DataGrid uses a set of DataGridColumns to describe how to display its data just like a GridView&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8885618</link><pubDate>Thu, 21 Aug 2008 21:04:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8885618</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Joel, I'll see what I can do to get it up there. &amp;nbsp;I'm glad that you find it very useful!&lt;/p&gt;
</description></item><item><title>Get a grip on the DataGrid - Snoop your way out of your troubles</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8887559</link><pubDate>Fri, 22 Aug 2008 14:41:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8887559</guid><dc:creator>See Sharp</dc:creator><description>&lt;p&gt;Get a grip on the DataGrid - Snoop your way out of your troubles&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8897322</link><pubDate>Tue, 26 Aug 2008 16:38:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8897322</guid><dc:creator>Sandeep (India)</dc:creator><description>&lt;p&gt;We are looking for following features:&lt;/p&gt;
&lt;p&gt;Will they be included in future? If yes, when can we expect?&lt;/p&gt;
&lt;p&gt;1. Footer&lt;/p&gt;
&lt;p&gt;2. Save Datagrid Layout&lt;/p&gt;
&lt;p&gt;3. Merge Cells in Header/Footer/Body&lt;/p&gt;
&lt;p&gt;4. Data Filtering (single / multi column)&lt;/p&gt;
&lt;p&gt;5. Column Customization (To hide a column User&lt;/p&gt;
&lt;p&gt; &amp;nbsp; can drag column to an area or on right click of a&lt;/p&gt;
&lt;p&gt; &amp;nbsp; column give option to hide column)&lt;/p&gt;
&lt;p&gt;6. Customized Summary Field where User can enter his&lt;/p&gt;
&lt;p&gt; &amp;nbsp; formula which can consist of some condition&lt;/p&gt;
&lt;p&gt;7. Exporting Grid to Excel/PDF/CSV&lt;/p&gt;
&lt;p&gt;Thank you very much for gr8 work.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sandeep&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8898063</link><pubDate>Tue, 26 Aug 2008 21:21:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8898063</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Sandeep,&lt;/p&gt;
&lt;p&gt;I responed to this on the other post where I consolidated the requests you are asking for, &lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/08/25/wpf-datagrid-sample-add-a-preview-tooltip-to-a-scrollviewer.aspx?CommentPosted=true#commentmessage&amp;quot;"&gt;http://blogs.msdn.com/vinsibal/archive/2008/08/25/wpf-datagrid-sample-add-a-preview-tooltip-to-a-scrollviewer.aspx?CommentPosted=true#commentmessage&amp;quot;&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8898206</link><pubDate>Tue, 26 Aug 2008 22:44:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8898206</guid><dc:creator>Julie</dc:creator><description>&lt;p&gt;I'm playing with your sample and I can't figure out what the checkbox &amp;quot;IsFrozen&amp;quot; is supposed to do. I was expecting it to freeze the column so that it could not be scrolled out of view, but it didn't do that. Thanks!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8898232</link><pubDate>Tue, 26 Aug 2008 22:55:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8898232</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Sorry for the confusion. &amp;nbsp;For the column customization part, IsFrozen and IsAutoGenerated are read only values that tell you what their state is. &amp;nbsp;I should have not made them checkboxes. &amp;nbsp;If you update the FrozenColumnCount or the DataGrid.AutoGenerateColumns checkbox on the left you will notice that the column IsFrozen and IsAutoGenerated will update accordingly. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;I'll update the sample so they are not mistaken for editable properties.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8904485</link><pubDate>Fri, 29 Aug 2008 07:18:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8904485</guid><dc:creator>shahab</dc:creator><description>&lt;p&gt;Thanks for the great article, could you please or anyone guide me in the right direction. I need to get the cell value of the cell clicked in the dg. Basically I want to open a new window when a user clicks on the row to pass the cell clicked value.&lt;/p&gt;
&lt;p&gt;any advice would be muchly appreciated&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8904921</link><pubDate>Fri, 29 Aug 2008 16:09:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8904921</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;shahab,&lt;/p&gt;
&lt;p&gt;Here are two thread that can help you out:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34065"&gt;http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34065&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34407"&gt;http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34407&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8919836</link><pubDate>Tue, 02 Sep 2008 14:48:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8919836</guid><dc:creator>wonderliza</dc:creator><description>&lt;p&gt;I found no samples for the moment, for stuffs like CommitingEdit etc... Do you know where we can find some ?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8920024</link><pubDate>Tue, 02 Sep 2008 16:58:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8920024</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;wonderliza,&lt;/p&gt;
&lt;p&gt;I'm not aware of samples for the editing stuff just yet. &amp;nbsp;I do plan on talking about that in upcoming posts. &amp;nbsp;Stay tuned.&lt;/p&gt;
&lt;p&gt;-Vince&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8920999</link><pubDate>Wed, 03 Sep 2008 03:04:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8920999</guid><dc:creator>Ron Larvick</dc:creator><description>&lt;p&gt;The big question I always have and hope for is if this grid will allow copy and paste from the clipboard. &amp;nbsp;Because many business applications I work with, users want to copy Excel data to their grid. &amp;nbsp;Either one cell to many, or multiple cells to the same number of cells.&lt;/p&gt;
&lt;p&gt;Can you do that with the new grid?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8922957</link><pubDate>Thu, 04 Sep 2008 01:07:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8922957</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Ron,&lt;/p&gt;
&lt;p&gt;In the current bits you do have the ability to copy data from the DataGrid to the clipboard. &amp;nbsp;Formats such as csv and html are supported out of the box. &amp;nbsp;For other formats we have made it extensible to create your own. &amp;nbsp;Clipboard paste is currently not supported but a relatively easy solution exists with the current implementation (through SelectedCells which gives you DataGridCellInfo).&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8928366</link><pubDate>Sat, 06 Sep 2008 21:03:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8928366</guid><dc:creator>Karl</dc:creator><description>&lt;p&gt;In the CTP drop, MS in included the source code for the DataGrid. I was really surprised. &amp;nbsp;It is a great learning tool. &lt;/p&gt;
&lt;p&gt;Will it get released from RTM like that?&lt;/p&gt;
&lt;p&gt;Can we extend and customize the code and put that into products?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8933944</link><pubDate>Mon, 08 Sep 2008 19:28:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8933944</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Karl,&lt;/p&gt;
&lt;p&gt;Yes the final v1 source will be released on CodePlex like the CTP. &amp;nbsp;Later down the line, the bits will be integrated into PresentationFramework.dll. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;As far as integrating public changes to the WPF DataGrid, no.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8939771</link><pubDate>Wed, 10 Sep 2008 12:45:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8939771</guid><dc:creator>Hardik</dc:creator><description>&lt;p&gt;Hi, can anybody tell me that how we can bind Images that comming from database to DataGrid?&lt;/p&gt;
&lt;p&gt;and what kind of images we can bind?&lt;/p&gt;
&lt;p&gt;thaks&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8940321</link><pubDate>Wed, 10 Sep 2008 15:46:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8940321</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Hardik,&lt;/p&gt;
&lt;p&gt;Binding an image coming from a database is no different than binding to any other property. &amp;nbsp;If the image was store in the database as a stream of bytes then you would have to create the image on the client side when the table is retrieved. &amp;nbsp;If the image was stored as a filename string then of course you would have to have the image exist on the client side.&lt;/p&gt;
&lt;p&gt;As far as the types of images that can be bound, they are: .bmp, .gif, .ico, .jpg, .png, .wdp, and .tiff&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8942659</link><pubDate>Thu, 11 Sep 2008 04:25:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8942659</guid><dc:creator>Hardik</dc:creator><description>&lt;p&gt;Hi Vincent, I am facing one more problem today. That I am trying to bind my read-only proprty to grid in &amp;quot;OneWay&amp;quot;. but it still display an error message &amp;quot;A TwoWay or OneWayToSource binding cannot work on the read-only property&amp;quot;. &lt;/p&gt;
&lt;p&gt;But the strange thing is that I am binding it as &amp;quot;OneWay&amp;quot; explicitly.&lt;/p&gt;
&lt;p&gt;Any advice? thanks&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8945394</link><pubDate>Thu, 11 Sep 2008 23:22:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945394</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;This is a known issue and will be fixed in the v1 release.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8945847</link><pubDate>Fri, 12 Sep 2008 06:38:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8945847</guid><dc:creator>gnobber</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested the datagrid and are having problems (in some areas). I bind the grid to an ObservableCollection with contents and it worked fine. But if the collection does not contain any item, you cannot add a new row via the grid. This only happens when AutoGenerateColumns = True.&lt;/p&gt;
&lt;p&gt;And also, say the grid has items. When you click on the last row (the NEW row) and begin edit, then click back on some other row, a new row is generated even though you did not enter a value on the then was new row. Is this by design?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8946510</link><pubDate>Fri, 12 Sep 2008 15:43:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8946510</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;gnobber,&lt;/p&gt;
&lt;p&gt;For the first issue, see the comments from this post, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/05/27/using-ieditablecollectionview-with-dynamically-generated-gridviewcolumns.aspx&lt;/a&gt;. &amp;nbsp;It describes the conditions for not being able to add a new row when the count is zero.&lt;/p&gt;
&lt;p&gt;For the second issue, this is by design. &amp;nbsp;A row will be committed when you press enter or click anywhere outside of the row. &amp;nbsp;If you don't want the behavior when you click outside of the row, you can listen to the CommittingRow event and cancel it there.&lt;/p&gt;
</description></item><item><title>SQL Table Binding</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8953493</link><pubDate>Tue, 16 Sep 2008 08:25:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8953493</guid><dc:creator>matt</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is possibly a very silly question, but, how does one bind to a DataTable? I'm simply trying to bind the grid to a table in an SQL database, but I'm stumped as to how to do it.&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8953856</link><pubDate>Tue, 16 Sep 2008 15:59:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8953856</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Matt,&lt;/p&gt;
&lt;p&gt;To bind to a DataTable you will need to set it's DataView to the ItemsSource. &amp;nbsp;DataTable has an API, DefaultView, that you can set to the ItemsSource. &amp;nbsp;I have an example in the sample on this post, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/08/28/wpf-datagrid-working-with-datagridcomboboxcolumns-part-2.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/08/28/wpf-datagrid-working-with-datagridcomboboxcolumns-part-2.aspx&lt;/a&gt; &lt;/p&gt;
</description></item><item><title>WPF DataGrid – Styling rows and columns based on Header conditions and other properties</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8954006</link><pubDate>Tue, 16 Sep 2008 18:11:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954006</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;There have been several questions on the WPF CodePlex discussion list relating to styling rows and columns&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8964985</link><pubDate>Thu, 25 Sep 2008 15:59:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8964985</guid><dc:creator>Morten</dc:creator><description>&lt;p&gt;Hi Vincibal,&lt;/p&gt;
&lt;p&gt;I have built my own CustomDataGrid for copy-paste based on your example, which I'm very grateful for. However, I would like the user to be able to add new rows to the grid by pasting many rows. In your example rows are only overwritten but no new ones are created. I've tryed to figure out how to manage that but I think I need some help... Thank you!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8965118</link><pubDate>Thu, 25 Sep 2008 18:06:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8965118</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Morten,&lt;/p&gt;
&lt;p&gt;I have written a new post on this. &amp;nbsp;Hope this helps you out.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/09/25/pasting-content-to-new-rows-on-the-wpf-datagrid.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/09/25/pasting-content-to-new-rows-on-the-wpf-datagrid.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8970247</link><pubDate>Tue, 30 Sep 2008 16:25:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970247</guid><dc:creator>Morten</dc:creator><description>&lt;p&gt;Thank you vincibal. It works great!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8985217</link><pubDate>Tue, 07 Oct 2008 17:17:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8985217</guid><dc:creator>the believer</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've read your blog about and it looks like the datagrid is shaping up to be a flexible control. Can't believe I just read this today. I have a question though. Does this datagrid support ierarchical views? If not, will it? Thanks!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8985757</link><pubDate>Tue, 07 Oct 2008 19:11:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8985757</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;the believer,&lt;/p&gt;
&lt;p&gt;Currently it does not support hierarchical view. &amp;nbsp;This is a frequent request and will be considered in future release. &amp;nbsp;I appreciate you taking the time to read my blog. &amp;nbsp;If you have any other feedback or questions just let me know.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8990721</link><pubDate>Wed, 08 Oct 2008 08:43:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8990721</guid><dc:creator>HariOm</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Adding the new row in DataGrid will (by default) call the default constuctor of object (whose collection is binded to datagrid).&lt;/p&gt;
&lt;p&gt;so, is it possible to call contructor other than default constructor when adding a new row?&lt;/p&gt;
&lt;p&gt;Any help?.... thanks in advance...&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8991235</link><pubDate>Wed, 08 Oct 2008 15:29:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8991235</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Hariom,&lt;/p&gt;
&lt;p&gt;Only the default constructor can be called through IEditabledCollectionView (which is what the DataGrid is using). &amp;nbsp;The way to work around it is to attach to the DataGrid.InitializingNewItem event. &amp;nbsp;From there you have access to the new object and you can update any properties on the new object before it is added to the DataGrid.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8992311</link><pubDate>Thu, 09 Oct 2008 04:01:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8992311</guid><dc:creator>HariOm</dc:creator><description>&lt;p&gt;Thanks vinsibal for quick reply. That is the option I am following right now but according to my business logic, it's not healthy way to do.&lt;/p&gt;
&lt;p&gt;So, will this feature be in next release or not?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8992812</link><pubDate>Thu, 09 Oct 2008 16:03:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8992812</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;HariOm,&lt;/p&gt;
&lt;p&gt;Currently there isn't a plan to support this but it will be added to the list of feature requests. &amp;nbsp;Thanks for your feedback.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8994696</link><pubDate>Fri, 10 Oct 2008 22:03:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8994696</guid><dc:creator>Corey</dc:creator><description>&lt;P&gt;Anybody tried binding to a collection that contains abstract objects? &amp;nbsp;When I make an attempt at adding a new row it will report to me that the type of object it's trying to instantiate is abstract and cannot be instantiated. &amp;nbsp;I would like to be able to go with the default object in this case but I'm not sure yet how to communicate that to the grid. &amp;nbsp;Is there an event before 'InitializingNewItem' I could possibly use to inject this logic?&lt;/P&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8995679</link><pubDate>Sat, 11 Oct 2008 13:08:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8995679</guid><dc:creator>randix</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;Thanks for the article. I've also read your article about the DataGridComboBoxColumn and when I tried it out, I noticed that the DataGridComboBoxColumn is read-only. I want to be able to implement an AutoComplete feature when a user edits the contents of a cell. Any ideas?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8999487</link><pubDate>Tue, 14 Oct 2008 16:42:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8999487</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Corey, &lt;/p&gt;
&lt;p&gt;Have you tried something like this,&lt;/p&gt;
&lt;p&gt;MyCollection : ObservableCollection&amp;lt;AbstractObject&amp;gt;?&lt;/p&gt;
&lt;p&gt;I've tried it with an interface and as long as you have items in the colleciton you will be able to add new items.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#8999501</link><pubDate>Tue, 14 Oct 2008 16:51:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8999501</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;randix,&lt;/p&gt;
&lt;p&gt;Try something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;dg:DataGridComboBoxColumn.EditingElementStyle&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Style TargetType=&amp;quot;ComboBox&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Setter Property=&amp;quot;IsEditable&amp;quot; Value=&amp;quot;True&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Setter Property=&amp;quot;IsReadOnly&amp;quot; Value=&amp;quot;False&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Setter &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Style&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dg:DataGridComboBoxColumn.EditingElementStyle&amp;gt;&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9002270</link><pubDate>Thu, 16 Oct 2008 23:20:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9002270</guid><dc:creator>Mike Bredbury</dc:creator><description>&lt;p&gt;Great demo but can you show us all how to have a simple button on the screen that will delete the selected row from the DataGrid in code-behind? Go on, please show us, sounds simple!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9002869</link><pubDate>Fri, 17 Oct 2008 14:14:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9002869</guid><dc:creator>Randy Maquilla</dc:creator><description>&lt;p&gt;Hi Vicent,&lt;/p&gt;
&lt;p&gt;Is it possible to get the coordinates of a cell (left, top, right, bottom)? I want to be able to show a usercontrol directly below the cell, or directly to the right of a cell, etc. Thanks!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9004470</link><pubDate>Sat, 18 Oct 2008 10:24:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9004470</guid><dc:creator>Spiderman</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When is the official release (of datagrid)? And will MS release a downloadable .NET 3.5 with SP1 bundle?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9006277</link><pubDate>Sun, 19 Oct 2008 17:06:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9006277</guid><dc:creator>Corey</dc:creator><description>&lt;p&gt;Is it possible to change how the ENTER key works when focus is on the grid? Say, I want the focus to be on the next column of the same row, not on the next row when I press ENTER.&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9007351</link><pubDate>Mon, 20 Oct 2008 15:35:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9007351</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Spiderman,&lt;/p&gt;
&lt;p&gt;I can't say the official release date but you don't have very long to wait. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;What do you mean about a downloadable .NET 3.5 SP1 bundle? &amp;nbsp;&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9010265</link><pubDate>Tue, 21 Oct 2008 22:51:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010265</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Mike Bredbury,&lt;/p&gt;
&lt;p&gt;You can take two approaches for this one. &amp;nbsp;You can call the DeleteCommand programmatically or you can recreate the DeleteCommand.Execute code. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you call the Command programmatically, you will have to also programmatically set focus on the CurrentCell as focus will move away when you click the button. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you decide to just recreate the Execute code, you have to do these steps:&lt;/p&gt;
&lt;p&gt;1. check if the row is still being edited, if so cancel.&lt;/p&gt;
&lt;p&gt;2. call IEditableCollectionView.Remove(itemToRemove)&lt;/p&gt;
&lt;p&gt;3. update selection to be place on a new item still in the collection&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9010274</link><pubDate>Tue, 21 Oct 2008 22:59:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010274</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Corey,&lt;/p&gt;
&lt;p&gt;You can listen to the PreviewKeyDown event and look for the enter key. &amp;nbsp;From there you can change focus to the next cell if you want and cancel the default enter operation.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9010628</link><pubDate>Wed, 22 Oct 2008 05:14:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010628</guid><dc:creator>Randy Maquilla</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;Is it possible to get the coordinates of a cell (left, top, right, bottom)? I want to be able to show a usercontrol directly below the cell, or directly to the right of a cell, etc. Thanks!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9010648</link><pubDate>Wed, 22 Oct 2008 05:47:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010648</guid><dc:creator>MarkOro</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;First of all thanks for your articles. I find your blog the most helpful for the current datagrid. &lt;/p&gt;
&lt;p&gt;I've been playing around the datagrid and am quite satisfied with what is available with it. But I have stumbled into a problem. And, seeing that many asks for your help with regards to the datagrid, I would like your help too. &lt;/p&gt;
&lt;p&gt;While editing a text column on the datagrid, if you set focus on another control, the text column commits the values and the editing control (textbox) gets hidden. Is there a way for the textbox to stay visible and editable even if focus changes, say to a listview? Thank you very much.&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9010980</link><pubDate>Wed, 22 Oct 2008 13:51:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9010980</guid><dc:creator>CloverField</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;I got a problem and im hoping you can help me out. I bound a datagrid to a List&amp;lt;T&amp;gt;. Only one column is bound: a Name column. What I can't seem to figure out is I need to get the unique ID a new object added to the grid. But since there is only a Name column, when you add a new column, of course only the Name property of T has a value. I can't think of a way how to get the T's ID after editing Name. Any ideas?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011131</link><pubDate>Wed, 22 Oct 2008 17:25:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011131</guid><dc:creator>Frank </dc:creator><description>&lt;p&gt;Hi Vince!&lt;/p&gt;
&lt;p&gt;is there a post out there somewhere than can give me an example of how to access the content of in individual cell (code behind XAML c#) .. ie datagrid populated with toList() six columns accross 10 rows&lt;/p&gt;
&lt;p&gt;I want to get the content of the cell that intersects the fourth rown and the second column..&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011486</link><pubDate>Wed, 22 Oct 2008 21:32:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011486</guid><dc:creator>ulrakhma</dc:creator><description>&lt;p&gt;Hi Vincent, is that possible for one column last one or any one to spring or fill the remaining of the grid area automatically?&lt;/p&gt;
&lt;p&gt;Lev&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011519</link><pubDate>Wed, 22 Oct 2008 21:55:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011519</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Frank,&lt;/p&gt;
&lt;p&gt;This thread can help, &lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34065"&gt;http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34065&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011524</link><pubDate>Wed, 22 Oct 2008 21:59:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011524</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;MarkOro,&lt;/p&gt;
&lt;p&gt;You can listen to the CommittingEdit event and cancel the operation in our specific scenario. &amp;nbsp;I haven't tried it out for your scenario so if you run into other issues, just let me know.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011534</link><pubDate>Wed, 22 Oct 2008 22:06:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011534</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Randy Maquilla,&lt;/p&gt;
&lt;p&gt;Could you explain more on how you want to go about adding additional controls to the DataGridCell. &amp;nbsp;The reason I ask is b/c there's a lot going on in the CellsPresenter Measure and Arrange for things like virtualization, star columns, etc. &amp;nbsp;If you are willing to wait (which you won't have to wait very long now), the final version of DataGrid has a RowDetails control that you can add anything you want. &amp;nbsp;It should also give you an idea of ways to customize the experience. &amp;nbsp;You also have access to the Cell's template itself which you can customize the experience as well.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011542</link><pubDate>Wed, 22 Oct 2008 22:14:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011542</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;ulrakhma,&lt;/p&gt;
&lt;p&gt;If you make the column a star width then it will fill the remaining space.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011725</link><pubDate>Thu, 23 Oct 2008 00:15:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011725</guid><dc:creator>ulrakhma</dc:creator><description>&lt;p&gt;So, I cannot use AutoGenerateColumns and ItemsSource BOUND TO Collection? Should I do something similar to WinForm DataGridView -- no autogenerate, manually create datagrid column, set HeaderText, AutoSizeMode, DataPropertyName, and then add it to grid's column collection?&lt;/p&gt;
&lt;p&gt;Thank you for your answer&lt;/p&gt;
&lt;p&gt;Lev&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9011983</link><pubDate>Thu, 23 Oct 2008 03:18:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011983</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;ulrakhma,&lt;/p&gt;
&lt;p&gt;You can still use Auto-column generation. &amp;nbsp;What you'll have to do is listen to the AutoColumnsGenerated event and there set the last column's width to a star value.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9014177</link><pubDate>Fri, 24 Oct 2008 08:25:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9014177</guid><dc:creator>Josh Smith</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;How do you get the current row?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9014616</link><pubDate>Fri, 24 Oct 2008 15:33:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9014616</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Josh,&lt;/p&gt;
&lt;p&gt;You can get the current row through DataGrid.CurrentItem.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9014689</link><pubDate>Fri, 24 Oct 2008 16:26:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9014689</guid><dc:creator>Josh Smith</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;About the current row, could you elaborate a bit? The CurrentItem returns an object and if I call GetType(), it returns the type that is bound on that row. How exactly do I get the current row from CurrentItem?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9015164</link><pubDate>Fri, 24 Oct 2008 22:32:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9015164</guid><dc:creator>Volker</dc:creator><description>&lt;p&gt;I am trying to get the new Wpf datagrid to work with an EditableRootList(CSLA Framework). When I update one of my items in the collection through editing a cell in the grid everything works fine first time changes are made. I can see the events being fired in the grid and Save is called on the item. The properties passed in are the new ones after editing.&lt;/p&gt;
&lt;p&gt;Second time, same cell, same picture although the item passed seems to be the old one. IsDirty not checked, properties not modified. Of course the Save is ignored in BusinessBase. &lt;/p&gt;
&lt;p&gt;Looks like the Grid is not replacing the references after the first update. However the UI is showing the correct values after the modifications although they are never modified in the DB. I am using a StaticResource and the CslaDataProvider. Csla Version 3.5.1 with VS 2008 Express C# :Net 3.5 Sp1 &lt;/p&gt;
&lt;p&gt;Am I missing something or is it really an issue with the new DataGrid?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9016588</link><pubDate>Sun, 26 Oct 2008 12:51:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9016588</guid><dc:creator>regev</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;when will the next version of the DataGrid be released (I saw that it will be part of the PDC)?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9016681</link><pubDate>Sun, 26 Oct 2008 16:38:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9016681</guid><dc:creator>Josh Smith</dc:creator><description>&lt;p&gt;Vincent,&lt;/p&gt;
&lt;p&gt;About the current row I asked you, how do you exactly use CurrentItem to get the row? The CurrentItem is of type whatever object type when the grid is bound to a collection. Do you mean I find the CurrentItem in the bound collection and use the item's index in the collection?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9018021</link><pubDate>Mon, 27 Oct 2008 14:47:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018021</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Josh Smith,&lt;/p&gt;
&lt;p&gt;That is correct. &amp;nbsp;You can get the current DataGridRow by mapping the index of CurrentItem in the collection to the DataGridRow. &amp;nbsp;This thread shows an implementation of GetRow(), &lt;a rel="nofollow" target="_new" href="http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34065"&gt;http://www.codeplex.com/wpf/Thread/View.aspx?ThreadId=34065&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9018023</link><pubDate>Mon, 27 Oct 2008 14:49:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9018023</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;regev,&lt;/p&gt;
&lt;p&gt;That's a good question that you ask. &amp;nbsp;The DataGrid v1 is going to be released this week at PDC!&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9019634</link><pubDate>Tue, 28 Oct 2008 06:26:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9019634</guid><dc:creator>Lelouch</dc:creator><description>&lt;p&gt;Vincent, I don't get this. I have a datagrid bound to a List&amp;lt;MySubject&amp;gt;. MySubject is like this:&lt;/p&gt;
&lt;p&gt;public class MySubject&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; public string Description {get; set;}&lt;/p&gt;
&lt;p&gt; public string Units {get; set;}&lt;/p&gt;
&lt;p&gt; public Subject Subject {get; set;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;public class Subject&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; public string Name {get; set;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I've got three columns bound like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataGridTextColumn colAccount = new DataGridTextColumn();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Binding b = new Binding(&amp;quot;Subject.Name&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b.Mode = BindingMode.TwoWay;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colAccount.DataFieldBinding = b;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colAccount.Header = &amp;quot;Name&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrdChild.Columns.Add(colAccount);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataGridTextColumn colDescription = new DataGridTextColumn();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b = new Binding(&amp;quot;Description&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b.Mode = BindingMode.TwoWay;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colDescription.DataFieldBinding = b;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colDescription.Header = &amp;quot;Description&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrdChild.Columns.Add(colDescription);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrdChild.ItemsSource = _SubjectList;&lt;/p&gt;
&lt;p&gt;The problem is, when I add new values to an empty datagrid, the name column won't commit, but description column does. Does it have anything to do with the Name column bound to an aggregate class?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9019829</link><pubDate>Tue, 28 Oct 2008 10:38:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9019829</guid><dc:creator>Carter</dc:creator><description>&lt;p&gt;How do you resolve this, Vincent? If you have a datagrid in a modal window and a Cancel button (isCancel=True), when you click a cell of the datagrid and start typing, and if the first character you type is 'c', the Cancel button is triggered. So instead of being able to type, the window gets closed. How do you prevent this?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9024327</link><pubDate>Thu, 30 Oct 2008 15:19:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024327</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Volker,&lt;/p&gt;
&lt;p&gt;I'm not as familiar with the EditableRootList code. &amp;nbsp;From what you have said it is hard to say where the issue lies. &amp;nbsp;Could you provide a code snippet?&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9024344</link><pubDate>Thu, 30 Oct 2008 15:29:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024344</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Lelouch,&lt;/p&gt;
&lt;p&gt;Try the sample here, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx&lt;/a&gt;. &amp;nbsp;It has a data source with nested data and works correctly. &amp;nbsp;Maybe that can help you out.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9024357</link><pubDate>Thu, 30 Oct 2008 15:37:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9024357</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Carter,&lt;/p&gt;
&lt;p&gt;Why is the Cancel button triggered when you type 'c'? Is that intended?&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9026578</link><pubDate>Fri, 31 Oct 2008 16:13:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9026578</guid><dc:creator>Carter</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;That's what I can't get. Cancel's hot key is 'C' (_Cancel) and IsCancel = True. I tried adding an event handler to Cancel_Click and whenever I press 'C' when focus is on datagridcell (but not in edit mode), instead of entering edit mode and writing 'C' on the cell (textbox), Cancel_Click is triggered. I have no code whatsoever for the datagrid. I hope you can I try it out. Thanks.&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9026957</link><pubDate>Fri, 31 Oct 2008 20:02:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9026957</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Carter, &lt;/p&gt;
&lt;p&gt;Do you have an email address that I can follow up offline with you? &amp;nbsp;I would like to take a look at the code for your issue.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9027701</link><pubDate>Sat, 01 Nov 2008 06:30:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9027701</guid><dc:creator>Carter</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt;Thanks for having the time to help me. But it suddenly worked now. What I did was, in Expression Blend, I deleted the DataGrid in the Window, then I added a new DataGrid (same name, default properties) and now when I press 'C', it goes into edit mode. Don't know what happened. I did install toolkit v1 but I doubt that's got anything to do with it. Maybe. Thanks anyway!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9027714</link><pubDate>Sat, 01 Nov 2008 06:45:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9027714</guid><dc:creator>Carter</dc:creator><description>&lt;p&gt;Me again Vincent,&lt;/p&gt;
&lt;p&gt;I thought the problem was gone but apparently, it wasn't. I've included the whole code I used. This Window only contains a DataGrid (no properties changed except width, height, and position-related properties) and a button (IsCancel = False, Content = _Cancel). If you want to reproduce the behavior, upon loading, single-click the first cell and type 'C'. The window will close and if you try to put a breakpoint in btnCancel, you will see that it is triggered upon pressing 'C'. BTW, my email is bongbong_23@yahoo.com. Thanks a lot!&lt;/p&gt;
&lt;p&gt;using System;&lt;/p&gt;
&lt;p&gt;using System.IO;&lt;/p&gt;
&lt;p&gt;using System.Net;&lt;/p&gt;
&lt;p&gt;using System.Windows;&lt;/p&gt;
&lt;p&gt;using System.Windows.Controls;&lt;/p&gt;
&lt;p&gt;using System.Windows.Data;&lt;/p&gt;
&lt;p&gt;using System.Windows.Media;&lt;/p&gt;
&lt;p&gt;using System.Windows.Media.Animation;&lt;/p&gt;
&lt;p&gt;using System.Windows.Navigation;&lt;/p&gt;
&lt;p&gt;using System.Collections.ObjectModel;&lt;/p&gt;
&lt;p&gt;using Microsoft.Windows.Controls;&lt;/p&gt;
&lt;p&gt;namespace UntitledProject1&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	public partial class Window1&lt;/p&gt;
&lt;p&gt;	{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private ObservableCollection&amp;lt;Employee&amp;gt; _EmployeeList = new ObservableCollection&amp;lt;Employee&amp;gt;();&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;//&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//&lt;/p&gt;
&lt;p&gt;		public Window1()&lt;/p&gt;
&lt;p&gt;		{&lt;/p&gt;
&lt;p&gt;			this.InitializeComponent();&lt;/p&gt;
&lt;p&gt;			// Insert code required on object creation below this point.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.Loaded += new RoutedEventHandler(Window1_Loaded);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.btnCancel.Click += new RoutedEventHandler(btnCancel_Click);&lt;/p&gt;
&lt;p&gt;		}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Cancel's Content property is _Cancel.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;private void btnCancel_Click(object sender, RoutedEventArgs 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;this.Close();&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;private void Window1_Loaded(object sender, RoutedEventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{ &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;dgrd.AutoGenerateColumns = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Columns.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataGridTextColumn colFirstName = new DataGridTextColumn();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Binding b = new Binding(&amp;quot;FirstName&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b.Mode = BindingMode.TwoWay;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colFirstName.Binding = b;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colFirstName.Width = new DataGridLength(100, DataGridLengthUnitType.Star);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colFirstName.CanUserSort = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colFirstName.Header = &amp;quot;First Name&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrd.Columns.Add(colFirstName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataGridTextColumn colMiddleName = new DataGridTextColumn();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b = new Binding(&amp;quot;MiddleName&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b.Mode = BindingMode.TwoWay;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colMiddleName.Binding = b;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colMiddleName.Width = new DataGridLength(200, DataGridLengthUnitType.Star);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colMiddleName.CanUserSort = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colMiddleName.Header = &amp;quot;Middle Name&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrd.Columns.Add(colMiddleName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataGridTextColumn colLastName = new DataGridTextColumn();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b = new Binding(&amp;quot;LastName&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b.Mode = BindingMode.TwoWay;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colLastName.Binding = b;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colLastName.Width = new DataGridLength(50, DataGridLengthUnitType.Star);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colLastName.CanUserSort = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;colLastName.Header = &amp;quot;Last Name&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrd.Columns.Add(colLastName);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgrd.ItemsSource = _EmployeeList;&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;private class Employee&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;public string FirstName { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string MiddleName { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public string LastName { get; set; }&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9046450</link><pubDate>Thu, 06 Nov 2008 06:28:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9046450</guid><dc:creator>BRanck</dc:creator><description>&lt;p&gt;Could you point me to any write up on the changes between the RTM and V1 of:&lt;/p&gt;
&lt;p&gt;In the RTM it was &amp;nbsp;- DataFieldBinding&lt;/p&gt;
&lt;p&gt;In the RTM it was - &amp;nbsp;DataGridRowsPresenter&lt;/p&gt;
&lt;p&gt;In the RTM it was - DataGridColumnHeader&lt;/p&gt;
&lt;p&gt;Each of these RTM Names break my code when using version 1, so it would help if you could point me to the right place to start reading about the changes.&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9046481</link><pubDate>Thu, 06 Nov 2008 06:34:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9046481</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;BRanck,&lt;/p&gt;
&lt;p&gt;Most of the changes are called out in this post, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx&lt;/a&gt;. &amp;nbsp;See the bottom of the post.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9049405</link><pubDate>Thu, 06 Nov 2008 18:18:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9049405</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Carter,&lt;/p&gt;
&lt;p&gt;This is actually by design. &amp;nbsp;Read more on it here, &lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/14f6f49f-0027-471b-b68c-e7f6ba012012"&gt;http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/14f6f49f-0027-471b-b68c-e7f6ba012012&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9057302</link><pubDate>Mon, 10 Nov 2008 15:27:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9057302</guid><dc:creator>David Anderson</dc:creator><description>&lt;p&gt;Hi Vincent!&lt;/p&gt;
&lt;p&gt;I need to generate group summaries like sums and averages. Can you point me in the right direction?&lt;/p&gt;
&lt;p&gt;Thanks for all your hard work!&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9187623</link><pubDate>Tue, 09 Dec 2008 20:59:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9187623</guid><dc:creator>Femi</dc:creator><description>&lt;p&gt;Could you pls show an xample of using linq to bind a data to the SP1 Datagrid? &lt;/p&gt;
&lt;p&gt;i cant seem to find any example whatsoever..&lt;/p&gt;
&lt;p&gt;It seems all the articles assume that we all know how databind but its not so.&lt;/p&gt;
&lt;p&gt;thxs &lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9192309</link><pubDate>Wed, 10 Dec 2008 23:33:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9192309</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Femi,&lt;/p&gt;
&lt;p&gt;The sample on this post, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/10/22/wpf-datagrid-and-the-wpftoolkit-have-released.aspx&lt;/a&gt;, shows an example of binding using linq to sql. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;This article here, &lt;a rel="nofollow" target="_new" href="http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx"&gt;http://www.codeproject.com/KB/WPF/WPFDataGridExamples.aspx&lt;/a&gt;, also talks about this as well.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9255571</link><pubDate>Mon, 29 Dec 2008 14:08:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9255571</guid><dc:creator>John</dc:creator><description>&lt;p&gt;I need to customize my cell value in WPF. Previously I have done the same by inheriting DataGridView - DataGridViewTextBoxCell and override Paint method. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do we have an equivalent for the same in WPF DataGrid?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9280301</link><pubDate>Mon, 05 Jan 2009 16:22:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9280301</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;John,&lt;/p&gt;
&lt;p&gt;In the WPF DataGrid you can customize the cell by using either different templates through the DataGridTemplateColumn or changing the style of one of the existing stock columns. &amp;nbsp;You can learn more about it here, &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx"&gt;http://blogs.msdn.com/vinsibal/archive/2008/08/19/wpf-datagrid-stock-and-template-columns.aspx&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9456520</link><pubDate>Tue, 03 Mar 2009 14:33:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9456520</guid><dc:creator>Abhishek Datta Gupta</dc:creator><description>&lt;p&gt;Hi Vincent,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; I am working on a typical big project in VB 2005. Recently, we decided to migrate to 2008 version using WPF to create a new UI. I am using WPF datagrid from the WPF toolkit.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; However, I am NOT able to dynamically add row values in the datagrid. Since I can't attach any sample code.I will describe the same.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; Plz create a WPF app. Add 6 textboxes, a button and the WPF datagrid. I the code view I have something like this:&lt;/p&gt;
&lt;p&gt;'%%%%CODE STARTS%%%%%%%%%%&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim colcount As Integer = 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' values hardcoded here, as there are 3 textboxes for column entry&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim rowcount As Integer = 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ' values hardcoded here&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim TD_Param_Column(0, 2) As String&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim TD_Param_Columnname&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ReDim TD_Param_Columnname(colcount - 1)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'For l = 0 To colcount - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TD_Param_Columnname(0) = TextBox1.Text&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TD_Param_Columnname(1) = TextBox2.Text&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TD_Param_Columnname(2) = TextBox3.Text&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TD_Param_Column(0, 0) = TextBox4.Text&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TD_Param_Column(0, 1) = TextBox5.Text&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TD_Param_Column(0, 2) = TextBox6.Text&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;'Adding the columns to the Datagridview1 : 2005 version&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'For l = 1 To colcount - 2&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp;Me.DataGridView3.Columns.Add((&amp;quot;Column&amp;quot; &amp;amp; l), TD_Param_Columnname(l - 1))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Adding the columns to the Datagrid1 : 2008 version&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For l = 0 To colcount - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dgtc As Microsoft.Windows.Controls.DataGridTextColumn = New Microsoft.Windows.Controls.DataGridTextColumn()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgtc.Header = TD_Param_Columnname(l)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.DataGrid1.Columns.Add(dgtc)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Catch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&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;'===========================================&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Adding the rows to the Datagrid1 : 2005 version&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Dim l As Integer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;''Writing the the test datas in Old Variant grid&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'For k = 1 To rowcount - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp;l = 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp;For g = colcount - 2 To 1 Step -1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.DataGridview3.Rows(k).Cells(l).Value() = TD_Param_Column(k, g)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;l = l + 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Catch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;' &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'Adding the rows to the Datagrid1 : 2008 version &amp;nbsp;NOT WORKING !!!!&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;For l = 0 To colcount - 1&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dim dgtr As Microsoft.Windows.Controls.DataGridRow = New Microsoft.Windows.Controls.DataGridRow()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dgtr.SetValue(DataGrid1.Items(0), TD_Param_Column(0, l))&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Me.DataGrid1.Items.Add(dgtr)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Catch&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;End Try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Next&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'===========================================&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;End Sub&lt;/p&gt;
&lt;p&gt;'%%%%% CODE ENDS%%%%%%%&lt;/p&gt;
&lt;p&gt;Please tell me how to add row values dynamically in the above code. &lt;/p&gt;
&lt;p&gt;Thanks and Regards,&lt;/p&gt;
&lt;p&gt;Abhishek&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9456665</link><pubDate>Tue, 03 Mar 2009 16:10:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9456665</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Abhishek Datta Gupta,&lt;/p&gt;
&lt;p&gt;Hopefully this can get you started, &lt;a rel="nofollow" target="_new" href="http://wpf.codeplex.com/Thread/View.aspx?ThreadId=34065"&gt;http://wpf.codeplex.com/Thread/View.aspx?ThreadId=34065&lt;/a&gt;. &lt;/p&gt;
</description></item><item><title>TwoWay binding issue</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9485742</link><pubDate>Wed, 18 Mar 2009 06:49:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9485742</guid><dc:creator>Arun Nair</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt; I am trying to setup two-way binding in the datagrid, but some how it does not seem to work. &amp;nbsp;I am able to change the value in the cell, but as soon as the cell loses focus, the value in the cell reverts back to what was there before I made the change. &amp;nbsp;The DataGrid is setup like this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dg:DataGrid &amp;nbsp;Grid.Row=&amp;quot;2&amp;quot; x:Name=&amp;quot;melodyListView&amp;quot; ItemsSource=&amp;quot;{StaticResource melody}&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot; HorizontalAlignment=&amp;quot;Right&amp;quot; Width=&amp;quot;224&amp;quot; Margin=&amp;quot;0,6,0,0&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dg:DataGrid.Columns&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dg:DataGridTextColumn Binding=&amp;quot;{Binding Name, Mode=TwoWay}&amp;quot; Header=&amp;quot;Name&amp;quot; CanUserSort=&amp;quot;False&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dg:DataGridTextColumn Binding=&amp;quot;{Binding Duration, Mode=TwoWay, Converter={StaticResource durationConverter}}&amp;quot; CanUserSort=&amp;quot;False&amp;quot; Header=&amp;quot;Duration&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dg:DataGridTextColumn Binding=&amp;quot;{Binding Volume, Mode=TwoWay, Converter={StaticResource volumeConverter}}&amp;quot; CanUserSort=&amp;quot;False&amp;quot; Header=&amp;quot;Volume&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dg:DataGrid.Columns&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/dg:DataGrid&amp;gt;&lt;/p&gt;
&lt;p&gt;In the code the binding is setup:&lt;/p&gt;
&lt;p&gt; melody = new Melody();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;melodyListView.DataContext = melody;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Binding b = new Binding();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;melodyListView.SetBinding(Microsoft.Windows.Controls.DataGrid.ItemsSourceProperty, b);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Any idea what am I missing here?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9498565</link><pubDate>Sun, 22 Mar 2009 17:21:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9498565</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Arun Nair,&lt;/p&gt;
&lt;p&gt;Does your melody class implement IEditableObject?&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9608847</link><pubDate>Wed, 13 May 2009 08:31:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9608847</guid><dc:creator>Sriram</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to Copy the contents of the datagrid on a button click event. If i try to set the Application Command.Copy in my button, it is getting disabled always.&lt;/p&gt;
&lt;p&gt;Can you help me to acheive this clipboard copy of datagrid by button click.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sriram&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9609197</link><pubDate>Wed, 13 May 2009 15:39:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9609197</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Sriram,&lt;/p&gt;
&lt;p&gt;If you want to do it in the click event you can do something like this:&lt;/p&gt;
&lt;p&gt;private void Button_Click(object sender, RoutedEventArgs 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;this.MyDataGrid.SelectAll();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ApplicationCommands.Copy.Execute(null, this.MyDataGrid);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9634369</link><pubDate>Fri, 22 May 2009 00:31:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634369</guid><dc:creator>CHARLEY SHENG</dc:creator><description>&lt;p&gt;Vinsibal,&lt;/p&gt;
&lt;p&gt;how could i get the datagridcell from datagridcellinfo object? &lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;charley&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9641426</link><pubDate>Tue, 26 May 2009 16:32:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9641426</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;Charley,&lt;/p&gt;
&lt;p&gt;Take a look at the GetCell implementation here, &lt;a rel="nofollow" target="_new" href="http://wpf.codeplex.com/Thread/View.aspx?ThreadId=34065"&gt;http://wpf.codeplex.com/Thread/View.aspx?ThreadId=34065&lt;/a&gt;.&lt;/p&gt;
</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9842768</link><pubDate>Tue, 21 Jul 2009 06:37:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9842768</guid><dc:creator>Gary</dc:creator><description>&lt;p&gt;I am trying to iterate through all checked rows on the DataGrid. How is this done?&lt;/p&gt;</description></item><item><title>re: .NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx#9907428</link><pubDate>Thu, 15 Oct 2009 03:37:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9907428</guid><dc:creator>Akash</dc:creator><description>&lt;p&gt;Hi vinsibal,&lt;/p&gt;
&lt;p&gt;I want to map A CSV file on to WPF datagrid. How can I do that? Thanks in advance.&lt;/p&gt;</description></item></channel></rss>