﻿<?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 - Webgrid how to make certain rows read only?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-how-to-make-certain-rows-read-only/</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 how to make certain rows read only?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-how-to-make-certain-rows-read-only/</link><pubDate>Tue, 29 Dec 2009 22:36:25 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Jocelyn,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;To make certain rows readonly, you can use ForceNoEdit. Below is the simple sample:&lt;/p&gt;
&lt;p&gt;- in Server-side :&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e)
{
  e.Row.Cells.GetNamedItem("Address").ForceNoEdit = true;
}

&lt;/pre&gt;

&lt;p&gt; - in Client-side&lt;/p&gt;&lt;pre&gt;function Button1_onclick()
{
  var WebGrid1 = ISGetObject("WebGrid1");
  var selObj = WebGrid1.GetSelectedObject();
  var cel = selObj.ToRowObject().GetCells();
  cel[1].SetForceNoEdit(true);
  return true;
}&lt;/pre&gt;
&lt;p&gt;And we have a great sample you can use as reference for updating row. Please see in WebGridSample with the title Client_ProgrammaticEdit.aspx. I hope this can help. Please let me know if you need another help.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>Webgrid how to make certain rows read only?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Webgrid-how-to-make-certain-rows-read-only/</link><pubDate>Tue, 29 Dec 2009 11:16:59 GMT</pubDate><dc:creator>jcrendulic</dc:creator><description>&lt;p&gt;I am using Webgrid 7 R2.  I need to make certain rows readonly based on a ceratin value I get back from the database and other rows need to be updateable.  How do I do this?&lt;/p&gt;</description></item></channel></rss>