﻿<?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 - WebDesktop - webgrid row selection loss focus</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/webgrid-row-selection-loss-focus/</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>webgrid row selection loss focus</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/webgrid-row-selection-loss-focus/</link><pubDate>Wed, 23 Feb 2011 22:27:49 GMT</pubDate><dc:creator>yudi</dc:creator><category>webgrid row selection</category><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to have WebGrid keep the selected row style after WebGrid lost focus is by defining the LostFocusRow style identic to the SelectedRow style.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The &lt;strong&gt;SelectedRowStyle&lt;/strong&gt; property gets or sets the style applied to the selected row. The &lt;strong&gt;LostFocusRowStyle&lt;/strong&gt; property defines the style applied to the selected row when the focus is out of the grid’s area.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The snippet code below shows a simple sample about how to both of those properties to have red BackColor.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;ISWebGrid:WebGrid ...&amp;gt;
    ...    
    &amp;lt;LayoutSettings AllowSorting="Yes"&amp;gt;
        &amp;lt;SelectedRowStyle BackColor="Red" /&amp;gt;
        &amp;lt;LostFocusRowStyle BackColor="Red" /&amp;gt;
    &amp;lt;/LayoutSettings&amp;gt;
    ...
&amp;lt;/ISWebGrid:WebGrid&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>webgrid row selection loss focus</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/webgrid-row-selection-loss-focus/</link><pubDate>Wed, 23 Feb 2011 05:16:31 GMT</pubDate><dc:creator>robbob</dc:creator><category>webgrid row selection</category><description>&lt;p /&gt;
&lt;p class="MsoNormal"&gt;Hi guys, hope you can help.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;I have a page with 2 webgrids.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Each row has styles for selected row.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;My problem is this:&lt;/p&gt;

&lt;p class="MsoNormal"&gt;When user selects a row at the first grid, row style changes
to indicate this is a selected row, I would like to keep the selected row style
after this webgrid loss focus, in other words I would like this row to stay “selected”
even when the user operates on other grids.&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;Thanks&lt;/p&gt;
&lt;p /&gt;</description></item></channel></rss>