<?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>More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx</link><description>Jossef just wrote this great post on improving sorting in the DataGrid through a custom sort. Check it out here . Ben Carter also added another sample that includes row drag-and-drop and column selection through cell selection. You can download that sample</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>send flowers &amp;raquo; More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8900080</link><pubDate>Wed, 27 Aug 2008 16:57:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8900080</guid><dc:creator>send flowers &amp;raquo; More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://hubsfunnywallpaper.cn/?p=2560"&gt;http://hubsfunnywallpaper.cn/?p=2560&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8901636</link><pubDate>Thu, 28 Aug 2008 01:05:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8901636</guid><dc:creator>WAW</dc:creator><description>&lt;p&gt;When a new insert row is displayed is there a way to set the first cell or any cell in the new insertion row so the user can just start typing instead of having the user select the cell. What I'm trying to create is a easy way the the user to enter new data. Set the first cell in the insertion row in focus and ready for user input. The user then tabs to each blank cell enters data and when done press the return key. When the return key is press and the new insertion row is displayed I what to set focus to the first cell of the insertion row so the user can just continue to enter data. I'm maping the datagrid to a dataview so I get the event when a new row is entered into the dataview - return key pressed&lt;/p&gt;
&lt;p&gt; m_dvView[nDataViewIndex].Table.TableNewRow += EHTableNewRow;&lt;/p&gt;</description></item><item><title>re: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8904177</link><pubDate>Fri, 29 Aug 2008 00:16:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8904177</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;WAW,&lt;/p&gt;
&lt;p&gt;Here is one possible implementation for it. &amp;nbsp;You can listen for the PreviewKeyDown event then have a dispatcher operation call a delegate after the DataGrid.KeyDown method is complete. &amp;nbsp;Then after the operation you can update the current cell and focus.&lt;/p&gt;
&lt;p&gt;DataGrid_Standard.PreviewKeyDown += new KeyEventHandler(DataGrid_Standard_PreviewKeyDown);&lt;/p&gt;
&lt;p&gt;void DataGrid_Standard_PreviewKeyDown(object sender, KeyEventArgs 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;if (e.Key == Key.Enter)&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;int i = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (object item in DataGrid_Standard.Items)&lt;/p&gt;
&lt;p&gt; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (item == DataGrid_Standard.CurrentItem)&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i++;&lt;/p&gt;
&lt;p&gt; &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; &amp;nbsp; &amp;nbsp;DataGridRow row = GetRow(i);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (row.IsEditing)&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;Dispatcher.BeginInvoke(DispatcherPriority.Input, new DispatcherOperationCallback(OnKeyDown), new object[] { e });&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;}&lt;/p&gt;
&lt;p&gt;private object OnKeyDown(object arg)&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;object[] arguments = arg as object[];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;KeyEventArgs e = (KeyEventArgs)arguments[0];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (e.Key == Key.Enter)&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;int i = 0;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (object item in DataGrid_Standard.Items)&lt;/p&gt;
&lt;p&gt; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (item == DataGrid_Standard.CurrentItem)&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;i++;&lt;/p&gt;
&lt;p&gt; &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; &amp;nbsp; &amp;nbsp;DataGridCell cell = GetCell(i, 0);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (DataGrid_Standard.SelectionUnit == DataGridSelectionUnit.Cell || DataGrid_Standard.SelectionUnit == DataGridSelectionUnit.CellOrRowHeader)&lt;/p&gt;
&lt;p&gt; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// have to deselect current cell(s)&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;DataGrid_Standard.SelectedCells.Clear();&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;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// set focus to the first cell&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cell.Focus();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// select the first cell&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cell.IsSelected = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// set the current cell to the first cell&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DataGrid_Standard.CurrentCell = new DataGridCellInfo(DataGrid_Standard.CurrentItem, DataGrid_Standard.Columns[0]);&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;return null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
</description></item><item><title>WPF DataGrid: Stock and Template Columns</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8905694</link><pubDate>Fri, 29 Aug 2008 19:32:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8905694</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>WPF DataGrid: Working with DataGridComboBoxColumn</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8905706</link><pubDate>Fri, 29 Aug 2008 19:35:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8905706</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;If you haven’t already, you can download the binaries and source for the DataGrid here . DataGridComboBoxColumn&lt;/p&gt;
</description></item><item><title>re: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8919593</link><pubDate>Tue, 02 Sep 2008 11:59:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8919593</guid><dc:creator>PMN</dc:creator><description>&lt;p&gt;Thanks for all your help.&lt;/p&gt;
&lt;p&gt;Im having problems with single click edit on a DataGrid bound to a DataView. The problem occurs when navigating from a cell that is in edit mode to another cell on the same row.&lt;/p&gt;
&lt;p&gt;The call to ConvertCellInfoToIndexes fails (Call Stack: OnIsSelectedChanged -&amp;gt; CellIsSelectedChanged -&amp;gt; AddValidatedCell -&amp;gt; ConvertCellInfoToIndexes), rowIndex ends up being -1 due to the modified DataRowView not being found (having a different RowState I guess):&lt;/p&gt;
&lt;p&gt;rowIndex = _owner.Items.IndexOf(cell.Item)&lt;/p&gt;
&lt;p&gt;When I replace that code with a loop through the rows, they are matched correctly, this works:&lt;/p&gt;
&lt;p&gt;for (int i = 0; i &amp;lt; _owner.Items.Count; i++)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;	if (_owner.Items[i] == cell.Item)&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;	rowIndex = i;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;/p&gt;
&lt;p&gt;	}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I also tried to force an EndEdit() on the underlying DataRow before trying to select the cell, but that made the insertion row to not showing up after edit is complete.&lt;/p&gt;
&lt;p&gt;This only occurs when binding to a DataTables DataView. Any ideas?&lt;/p&gt;</description></item><item><title>re: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8919948</link><pubDate>Tue, 02 Sep 2008 16:03:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8919948</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;PMN, &lt;/p&gt;
&lt;p&gt;This is a known issue and will be addressed in the final version of the WPF DataGrid. &amp;nbsp;Sorry for the inconvenience. = (&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vince&lt;/p&gt;
</description></item><item><title>re: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8926486</link><pubDate>Fri, 05 Sep 2008 19:26:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8926486</guid><dc:creator>WAW</dc:creator><description>&lt;p&gt;Thanks for the help&lt;/p&gt;
&lt;p&gt;where is GetCell and GetRow defined?&lt;/p&gt;</description></item><item><title>re: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8926494</link><pubDate>Fri, 05 Sep 2008 19:34:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8926494</guid><dc:creator>vinsibal</dc:creator><description>&lt;p&gt;WAW,&lt;/p&gt;
&lt;p&gt;These are defined by the app author. &amp;nbsp;Examples of them can be found on this thread, &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>.NET 3.5 SP1 and WPF DataGrid CTP are out now!</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8954012</link><pubDate>Tue, 16 Sep 2008 18:14:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8954012</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;As you might have heard, .NET Framework 3.5 SP1 and Visual Studio 2008 SP1 are out today! There are a&lt;/p&gt;
</description></item><item><title>WPF DataGrid - Clipboard Paste Sample</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8958869</link><pubDate>Fri, 19 Sep 2008 18:07:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8958869</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;In the v1 release (and CTP) of the WPF DataGrid there will be support for Clipboard.Copy but no support&lt;/p&gt;
</description></item><item><title>WPF DataGrid: Tri-state Sorting sample</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8958889</link><pubDate>Fri, 19 Sep 2008 18:11:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8958889</guid><dc:creator>Vincent Sibal's Blog</dc:creator><description>&lt;p&gt;Here is a short sample on how to create a tri-state sorting experience with the WPF DataGrid . In the&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/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#8958890</link><pubDate>Fri, 19 Sep 2008 18:12:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8958890</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: More DataGrid Samples: Custom Sorting, Drag and Drop of rows, Column Selection, and Single-click Editing</title><link>http://blogs.msdn.com/vinsibal/archive/2008/08/27/more-datagrid-samples-custom-sorting-drag-and-drop-of-rows-column-selection-and-single-click-editing.aspx#9184812</link><pubDate>Mon, 08 Dec 2008 17:59:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9184812</guid><dc:creator>premasoft</dc:creator><description>&lt;p&gt;In WPF datagrid, I having problem to edit content in different cell than is focus. I can write data to the cell content and it is visible when the cell is not in editmode. But when user click in the cell and going to editmode the old value is back. I use IEnumerable datatable with LINQ to SQLClasses.&lt;/p&gt;
&lt;p&gt;The same problem are when this datarow have to be edit in own window for a singel row. &lt;/p&gt;
&lt;p&gt;I try to do this in code behind, but I cant find the way to do it.&lt;/p&gt;
&lt;p&gt;Is there any best practis for this?&lt;/p&gt;</description></item></channel></rss>