﻿<?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 - Programmatically deselect a row in webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Programmatically-deselect-a-row-in-webgrid/</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>Programmatically deselect a row in webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Programmatically-deselect-a-row-in-webgrid/</link><pubDate>Thu, 13 Jan 2011 10:57:20 GMT</pubDate><dc:creator>bbucher</dc:creator><description>&lt;p&gt;Nevermind! Sorry for the trouble; found it:&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;span style="font-size: 13px"&gt;WebGrid1.SetSelectedObject(&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;null&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;);&lt;/span&gt;

&lt;p&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="font-size: 13px"&gt;It's working &amp;amp; I'm happy.&amp;nbsp; :-) &lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatically deselect a row in webgrid</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Programmatically-deselect-a-row-in-webgrid/</link><pubDate>Thu, 13 Jan 2011 10:46:24 GMT</pubDate><dc:creator>bbucher</dc:creator><description>&lt;p&gt;Hi!  I have a webgrid that is dependent on a datasource with parameters set on certain textboxes on the window.  When those fields change I have a post-back that sets other hidden fields and then refreshes the SQL datasource, and I do a databind() on the grid.&lt;/p&gt;
&lt;p&gt;This works fine when the grid does not have a selected row.  However, when the user has clicked on a row, I get an error message "'_HTMLOBJ' is null or not an object" on the line "v04254._HtmlObj.disabled = !v57079".&lt;/p&gt;
&lt;p&gt;I'm thinking that the simplest way around this is to simply programmatically deselect the row before databinding but I can't seem to figure out how to accomplish that. (I tried disabling &amp; then re-enabling the grid but that didn't help)&lt;/p&gt;
&lt;p&gt;Any help would be appreciated!&lt;/p&gt;</description></item></channel></rss>