﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - On Row Validate set the focus of the Grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/On-Row-Validate-set-the-focus-of-the-Grid/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>On Row Validate set the focus of the Grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/On-Row-Validate-set-the-focus-of-the-Grid/</link><pubDate>Mon, 14 Jun 2010 22:03:04 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;We have already provide an ActivateEdit function on the cell level, you could use that function instead of ActivateEditMode on the grid level to focus on individual row. Here is a snippet for such scenario, focusing on the first cell:&lt;/p&gt;&lt;pre&gt;function wgTest_OnRowValidate(rowElem)&lt;br /&gt;{&lt;br /&gt;    var grid = ISGetObject("wgTest");&lt;br /&gt;    var rowObj = grid.GetRowByElement(rowElem);&lt;br /&gt;    &lt;br /&gt;    rowObj.GetCell(0).ActivateEdit();&lt;br /&gt;&lt;br /&gt;    return false;&lt;br /&gt;}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>On Row Validate set the focus of the Grid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/On-Row-Validate-set-the-focus-of-the-Grid/</link><pubDate>Mon, 14 Jun 2010 16:13:51 GMT</pubDate><dc:creator>JohnnyBravo</dc:creator><description>&lt;p&gt;I have  a method that performs OnRowValidate. It works well but when I call &lt;/p&gt;
&lt;p&gt;ISGetObject("grdInvoiceTransactions").ActivateEditMode()&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The focus is on a column at the end of the row. How can I get it to focus at the beginning of the row.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item></channel></rss>