﻿<?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 - How to set AllowAddNew=False in child table?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-set-AllowAddNewFalse-in-child-table/</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>How to set AllowAddNew=False in child table?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-set-AllowAddNewFalse-in-child-table/</link><pubDate>Mon, 08 Feb 2010 05:25:21 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Staffan,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;The code is almost similar to C#. You can add the code in &lt;span style="font-family: 'courier new'; font-size: 10pt; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;WebGrid1_InitializeLayout&lt;/span&gt;&lt;span style="font-family: 'calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;&amp;nbsp;&amp;nbsp;events in server-side with the snippet below:&lt;/span&gt;&lt;/p&gt;&lt;span style="font-family: 'calibri','sans-serif'; font-size: 11pt; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;&lt;pre&gt;    Protected Sub WebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.LayoutEventArgs) Handles WebGrid1.InitializeLayout
        e.Layout.AllowAddNew = ISNet.WebUI.WebGrid.AddNew.No
    End Sub&lt;/pre&gt;&lt;p&gt;Please let me know if this code has appropriate with your need or not.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Julia&lt;/p&gt;&lt;/span&gt;</description></item><item><title>How to set AllowAddNew=False in child table?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-set-AllowAddNewFalse-in-child-table/</link><pubDate>Fri, 05 Feb 2010 08:27:54 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;Update: it works when setting AllowAddNew through LayoutSettings in the aspx file. &lt;br /&gt;&lt;br /&gt;How can it be set from code-behind VB?&lt;br /&gt;&lt;br /&gt;// Staffan&lt;/p&gt;</description></item><item><title>How to set AllowAddNew=False in child table?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-set-AllowAddNewFalse-in-child-table/</link><pubDate>Fri, 05 Feb 2010 06:42:14 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;I'm using 6.0.7200.218.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;// Staffan&lt;/p&gt;</description></item><item><title>How to set AllowAddNew=False in child table?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-set-AllowAddNewFalse-in-child-table/</link><pubDate>Fri, 05 Feb 2010 06:37:05 GMT</pubDate><dc:creator>julia</dc:creator><description>&lt;p&gt;Hi Staffan,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I tried to create a hierarchical grid that set AllowAddNew to true in Properties and then set it to false in the server side. But it all works fine which I can't add any row, both in the parent or in the child table as seen in the printscreen unallowaddnew.png of attachment below. May I know the version of WebGrid that you use?&lt;/p&gt;
&lt;p&gt;Also, please don't forget to apply the latest hotfix before you running you project. If you have used the latest version, can you attach me your running sample that can replicate your issue? And a screenshot of the issue would be very helpful.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Julia&lt;/p&gt;</description></item><item><title>How to set AllowAddNew=False in child table?</title><link>http://www.intersoftsolutions.com/Community/WebGrid/How-to-set-AllowAddNewFalse-in-child-table/</link><pubDate>Thu, 04 Feb 2010 10:18:32 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;I have an hierarchical grid with AllowAddNew=False in the LayoutSettings. For some very strange reason I still can add a new row in the child table. How can I disable this also in the child table?&lt;/p&gt;
&lt;p&gt;// Staffan&lt;/p&gt;</description></item></channel></rss>