<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/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>Silverlight Controls and Silverlight Toolkit</title><link>http://forums.silverlight.net/forums/35.aspx</link><description>Discussions around using and developing Silverlight controls and the Silverlight Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/283202.aspx</link><pubDate>Tue, 08 Sep 2009 00:40:52 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:283202</guid><dc:creator>nivazone</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/283202.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=283202</wfw:commentRss><description>&lt;p&gt;I had the exact same problem, what I did to overcome double tabbing is; &lt;/p&gt;&lt;p&gt;&amp;nbsp;- Call BeginEdit() in CurrentCellChanged event of the datagrid&lt;/p&gt;&lt;p&gt;-&amp;nbsp; Use PreparingCellForEdit event of the datagrid to get EditingElement (which is in DataGridPreparingCellForEditEventArgs), and locate ComoBox or TextBox by scanning visual tree.&lt;/p&gt;&lt;p&gt;- Once you found the control, set it to focus using Focus() method.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hope this helps. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/259570.aspx</link><pubDate>Wed, 29 Jul 2009 10:21:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:259570</guid><dc:creator>puckoff7337</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/259570.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=259570</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks, this thread was useful... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/225013.aspx</link><pubDate>Wed, 27 May 2009 07:36:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:225013</guid><dc:creator>LarsHolmJensen</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/225013.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=225013</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; SetCaretInCurrentCell()&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;dg.Dispatcher.BeginInvoke(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Action&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(setCaretInCurrentCell));&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; setCaretInCurrentCell()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;dg.BeginEdit();&lt;/p&gt;
&lt;p&gt;dg.Focus();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/161260.aspx</link><pubDate>Thu, 15 Jan 2009 21:02:13 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:161260</guid><dc:creator>lee_sl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/161260.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=161260</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://silverlight.net/forums/t/49402.aspx"&gt;&lt;/a&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/134501.aspx</link><pubDate>Thu, 20 Nov 2008 10:49:01 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:134501</guid><dc:creator>hehrsson</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/134501.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=134501</wfw:commentRss><description>&lt;p&gt;Same problem for me, the BeginEdit will bring the TextBox in focus but the caret is not displayed.&lt;/p&gt;
&lt;p&gt;Before I tried this, clicking once with the mouse in a cell would mark the cell with a blue border around it.&lt;br /&gt;Clicking a second time would&amp;nbsp;bring up the&amp;nbsp;TextBox specified in CellEditingTemplate (the background in the cell becomes white instead of blue), but I could still not write anything into the TextBox.&lt;br /&gt;Clicking a third time would make the TextBox editable.&lt;br /&gt;&lt;br /&gt;After I tried the BeginEdit() stuff I managed to get rid of the first step (just marking the cell), but I still need two clicks to get the caret displayed in the TextBox making it possible to write anything.&lt;/p&gt;
&lt;p&gt;I have the same demand from my customers, navigating the grid with the Enter key, but with an addition, when pressing Enter in the&amp;nbsp;last cell on the last row, a new empty row should be added (I&amp;#39;m creating an invoice registration form where you add invoice rows in the grid).&lt;/p&gt;
&lt;p&gt;- Håkan&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/132217.aspx</link><pubDate>Mon, 17 Nov 2008 09:30:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:132217</guid><dc:creator>SASilver</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/132217.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=132217</wfw:commentRss><description>&lt;p&gt;My datagrid has many of the cells as editing templates and i also tried hooking the event Begin Edit... But dint work right for me.&lt;/p&gt;&lt;p&gt;How did u guys solve it ? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/119067.aspx</link><pubDate>Tue, 28 Oct 2008 10:29:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:119067</guid><dc:creator>lee_sl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/119067.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=119067</wfw:commentRss><description>&lt;p&gt;you can handle the currentcellchangedevent and call BeginEdit() to force the current cell to be go into editmode&lt;/p&gt;</description></item><item><title>Re: Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/116499.aspx</link><pubDate>Fri, 24 Oct 2008 02:55:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:116499</guid><dc:creator>R3al1ty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/116499.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=116499</wfw:commentRss><description>&lt;p&gt;Thanks, could you elaborate on how I could achieve pt 2 on this basic template? I am trying to see if there is&amp;nbsp;a generic way I can achieve this.&lt;br /&gt;&lt;br /&gt;...&lt;br /&gt;&amp;lt;CellEditingTemplate&amp;gt;&lt;br /&gt;&amp;lt;Grid&amp;gt;&lt;br /&gt;&amp;lt;TextBox Text=&amp;quot;{Binding Name}&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;/Grid&amp;gt;&lt;br /&gt;&amp;lt;/CellEditingTemplate&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/112539.aspx</link><pubDate>Sat, 18 Oct 2008 16:14:54 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:112539</guid><dc:creator>xusun</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/112539.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=112539</wfw:commentRss><description>&lt;p&gt;This is because you are using&amp;nbsp;CellTemplates.&amp;nbsp; The DataGrid only knows that it needs to use the CellEditTemplate for that cell after you hit Tab and show you the content in your CellEditTemplate.&amp;nbsp; It doesn&amp;#39;t know which element in your CellEditTemplate should get focus.&amp;nbsp;&amp;nbsp; I suggest the following:&lt;/p&gt;
&lt;p&gt;1. If it&amp;#39;s equvalent to a TextColumn, you may consider to restyle it to meet your requirement and let the default DataGrid behavior do the focus for you; Or&lt;/p&gt;
&lt;p&gt;2. You can hook up some event to make the textbox gets focus when the cell gets focus&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/112515.aspx</link><pubDate>Sat, 18 Oct 2008 15:59:42 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:112515</guid><dc:creator>R3al1ty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/112515.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=112515</wfw:commentRss><description>&lt;p&gt;Hey thanks, that works! &lt;/p&gt;
&lt;p&gt;...but, if I have a couple of TextBoxes in a row as my CellTemplates, if I type something inside one of them and Tab to the next, the next cell switches to a TextBox but I have to click once more inside before I can type something in.&lt;/p&gt;</description></item><item><title>Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/112453.aspx</link><pubDate>Sat, 18 Oct 2008 12:49:46 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:112453</guid><dc:creator>xusun</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/112453.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=112453</wfw:commentRss><description>&lt;p&gt;First of all, DataGrid does support Tab navigation. Tab navigation is supported when the datagrid is in Editing mode, i.e. after double clicking a cell.&amp;nbsp; While not in editing mode, users can still use Arrow keys to navigate the cells.&lt;/p&gt;
&lt;p&gt;However, there is a bug not fixed in RTM.&amp;nbsp; When the datagrid is the last element in your panel, Tab navigation will not work.&amp;nbsp; It will navigate to the address bar.&amp;nbsp; The walk-around is to add something after the datagrid, for example, a ContentControl.&lt;/p&gt;</description></item><item><title>Re: Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/111642.aspx</link><pubDate>Fri, 17 Oct 2008 06:46:33 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:111642</guid><dc:creator>AdmiralGanja</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/111642.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=111642</wfw:commentRss><description>&lt;p&gt;This is probably because the browser already handled it. So if anyone know how to catch and prevent that event from being&amp;nbsp;handled&amp;nbsp;by the browser it might be the solution, but still I guess this is very browser specific, and could not be handled in code... Please proove me wrong anyone?&lt;/p&gt;
&lt;p&gt;R3al1ty: At least the users could navigate in the DataGrid with the arrow keys, but I defenitely concur with you... Please Microsoft staff, help us out here with this usability issue!?&lt;/p&gt;</description></item><item><title>Re: Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/111504.aspx</link><pubDate>Fri, 17 Oct 2008 02:14:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:111504</guid><dc:creator>R3al1ty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/111504.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=111504</wfw:commentRss><description>&lt;p&gt;Could a microsoftie respond, its a bit too much to ask users to click each cell with the mouse in a real-world app. Thanks.&lt;/p&gt;</description></item><item><title>Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/99886.aspx</link><pubDate>Tue, 30 Sep 2008 11:24:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:99886</guid><dc:creator>AdmiralGanja</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/99886.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=99886</wfw:commentRss><description>I wonder what &lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;&lt;font color="#ff0000" size="2"&gt;
&lt;p&gt;TabNavigation&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;= [cycle, once, local] &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;is intended to do... Doesn&amp;#39;t seem to affect the tabnavigation between cells anyway...&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#000000"&gt;/Jesper&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: Datagrid with tab navigation</title><link>http://forums.silverlight.net/forums/thread/99847.aspx</link><pubDate>Tue, 30 Sep 2008 09:55:05 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:99847</guid><dc:creator>R3al1ty</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/99847.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=35&amp;PostID=99847</wfw:commentRss><description>&lt;p&gt;Ouch, you are right. Cant Tab between cells in the DataGrid ... man, our users are going to scream. &lt;/p&gt;
&lt;p&gt;Any workarounds from the experts?&lt;/p&gt;</description></item></channel></rss>