﻿<?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 - ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</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>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Mon, 29 Nov 2010 12:07:01 GMT</pubDate><dc:creator>tlusby</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Gordon,&lt;/p&gt;
&lt;p&gt;I found a workaround.  What I did to get around this issue was I return a dummy row and on the InitializeRow I set that row Visible = false.&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Mon, 29 Nov 2010 09:51:42 GMT</pubDate><dc:creator>tlusby</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Thanks Gordon,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;It appears to be working when there are existing records in the data object that is bound to the grid.  However, if there are &lt;strong&gt;&lt;span style="text-decoration: underline"&gt;no&lt;/span&gt;&lt;/strong&gt; rows two things happen:  1)  I'm not able to save the data.  I get an Communication Error and 2) I see the "There are no rows in this view" as I enter data.  &lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I have attached a sample.  I couldn't get it to replicate the Communication Error, but the save just sits there.  I'm also not using a IDataSource either in my actual page.&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Sun, 21 Nov 2010 22:24:03 GMT</pubDate><dc:creator>gordont</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Hi Tenika,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I modified the previous sample from Michael to adjust with your scenario, but I didn't get the same error. Could you try my sample and let me know if the problem occur or not at your end? If you have different scenario could you modify my sample so it will replicate the issue?&lt;/p&gt;
&lt;p&gt;To run my sample, you need to put it in WebGridSamples.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Fri, 19 Nov 2010 10:55:06 GMT</pubDate><dc:creator>tlusby</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;I'm having this same problem.  I have a stored procedure that has Select aKey as Indentity(5), TestID, TestName from TestTable.&lt;/p&gt;
&lt;p&gt;Now, I have a grid with no rows that the users should have the ability to add as many rows as they want then click the save button (BatchUpdate).  They aKey column doesn't need to show because it makes no sense to the user.  I too had the same problem with the AddCustomer.aspx example.  I insert a row then another row and I get the error message "&lt;strong&gt;the pending changes already contain a record with key &lt;/strong&gt;''.  This is a huge problem for us because our work around has been to make the user save after each row entry.  That's not the approach we are looking for. &lt;/p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;
&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Name&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="aKey"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Caption&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="aKey"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;DataMember&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="aKey"
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;Visible&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="false"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;EditType&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="TextBox"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt; &lt;/span&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;&lt;span style="color: #ff0000; font-size: 13px"&gt;IsAutoIncrement&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;="true"&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;lt;/&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;ISWebGrid&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;WebGridColumn&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;

&lt;p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt;&lt;span style="color: #0000ff; font-size: 13px"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Wed, 22 Sep 2010 04:50:08 GMT</pubDate><dc:creator>gordont</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The error occured because Customer ID is not auto increment column, that's why you need to set the value. the solutions only works for auto increment column. I have tried to use your code on Michael's sample and it works normally.&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Tue, 21 Sep 2010 10:16:44 GMT</pubDate><dc:creator>SAgosto</dc:creator><category>AllowAddItem</category><description>&lt;blockquote&gt;&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;Ok, I will describe the code that I sent earlier to Michael.&amp;nbsp;&lt;/p&gt;&lt;p&gt;First, grid will set the ID column manually to (AUTO), means that the ID is generated automatically from database, for example if the ID is auto increment or GUID.&lt;/p&gt;&lt;p&gt;For this, you need to inform grid by using the following code:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;cells.GetNamedItem("ProductID").SetChanges("false");&lt;/p&gt;&lt;p&gt;&lt;br /&gt;After that, when you add pending changes, the grid will set the field to AUTO and you can add as many row that you want to add without getting the error.&lt;/p&gt;&lt;p&gt;Have you tried to use the code? If not, please try to use the code and let me know if it's not working. Because I have test and some customers have used it without any problem.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Gordon Tumewu&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I still get errors.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Click "Add 10 new rows".&lt;/p&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="BatchUpdateDeleteRow.aspx.cs" Inherits="BatchUpdateDeleteRow" %&amp;gt;
&amp;lt;%@ Register TagPrefix="iswebgrid" Namespace="ISNet.WebUI.WebGrid" Assembly="ISNet.WebUI.WebGrid" %&amp;gt;

&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;HTML&amp;gt;
	&amp;lt;HEAD runat=server&amp;gt;
		&amp;lt;title&amp;gt;BatchUpdateDeleteRow&amp;lt;/title&amp;gt;
		&amp;lt;meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"&amp;gt;
		&amp;lt;meta name="CODE_LANGUAGE" Content="C#"&amp;gt;
		&amp;lt;meta name="vs_defaultClientScript" content="JavaScript"&amp;gt;
		&amp;lt;meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"&amp;gt;
		&amp;lt;script language="javascript"&amp;gt;
		    function WebGrid_SetFieldText(field, text, updateValueField) 
		    {
		        try 
		        {
		            // Set field's text
		            // NOTE: Default the value to the text if flag is not specified
		            if (field == null) { return; }
		            if (typeof (updateValueField) == "undefined") { updateValueField = true; }
		            field.SetText(text, updateValueField, true);
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function AddNewRowForceNewData() 
		    {
		        var grdInurings = ISGetObject("WebGrid1");
			
		        // Create new row
		        var newRow = grdInurings.RootTable.NewRow();
		        if (newRow == null) { return false; }

		        // Default new row's data
		        // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
		        grdInurings.ClearSelection();

		        // Address
		        var cells = newRow.GetCells();
		        var address = cells.GetNamedItem("Address");
		        if (address != null) { WebGrid_SetFieldText(address, ""); }

		        // Customer ID
		        var customerID = cells.GetNamedItem("CustomerID");
		        if (customerID != null) 
		        {
		            window.alert("Why does this field need to be set for a new row when the ID is not set until the data is committed?");
		            var now = new Date();
		            WebGrid_SetFieldText(customerID, String((now.getSeconds() &amp;#43; now.getMilliseconds())));
		        }
		        newRow.AddPendingChanges();

		        // Focus
		        newRow.Select();
		        
		        return true;
		    }

		    function AddNewRows(numOfNewRows, numOfDeleteRows) 
		    {
		        var grdInurings = ISGetObject("WebGrid1");
		        if (typeof (numOfDeleteRows) == "undefined") { numOfDeleteRows = 0; }		        
		        for (var index = 0; index &amp;lt; numOfNewRows; index&amp;#43;&amp;#43;)
		        {
		            var newRow = AddNewRow();
		            if (index &amp;lt; numOfDeleteRows) 
		            {
		                WebGrid_DeleteRow(newRow);
		            }
		        }
		        
		        return true;
		    }

		    function AddNewRow() 
		    {
		        // Create new row
		        var grdInurings = ISGetObject("WebGrid1");
		        var newRow = grdInurings.RootTable.NewRow();
		        if (newRow == null) { return false; }

		        // Default new row's data
		        // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
		        grdInurings.ClearSelection();

		        // Address
		        var cells = newRow.GetCells();
		        var address = cells.GetNamedItem("Address");
		        if (address != null) { WebGrid_SetFieldText(address, ""); }

		        // Customer ID
		        var customerID = cells.GetNamedItem("CustomerID");
		        if (customerID != null) 
		        {
		            var now = new Date();
		            //WebGrid_SetFieldText(customerID, String((now.getSeconds() &amp;#43; now.getMilliseconds())));
		            window.alert("customerID.SetChanges('false');");
		            customerID.SetChanges("false"); 
		        }	
		        
		        newRow.AddPendingChanges();
		        return newRow;
		    }

		    function WebGrid_GetSelectedRow() 
		    {
		        try 
		        {
		            // Get selected row
		            var grid = ISGetObject("WebGrid1");
		            if (grid == null) { return; }
		            var selObj = grid.GetSelectedObject();
		            if (selObj == null) { return; }
		            return selObj.ToRowObject();
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function WebGrid_DeleteSelectedRow() 
		    {
		        try 
		        {
		            WebGrid_DeleteRow(WebGrid_GetSelectedRow());		            
		        }
		        catch (ex) { ShowJSException(ex); }
		    }
		    
		    function WebGrid_DeleteRow(row)	
		    {
		        try 
		        {

		            if (row == null) { return; }
		            row.Delete();
		            row.AddPendingChanges();

		            var rowElement = row.GetElement();
		            //if (rowElement != null) { rowElement.style.display = "none"; }
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function WebGrid_UpdateSelectedRow()
		    {
		        try 
		        {
		            var grdInurings = ISGetObject("WebGrid1");
		             var updateRow = WebGrid_GetSelectedRow();
		            var cells = updateRow.GetCells();
		            var now = new Date()
		            // Get grid
		            

		            // Indicate edit is occurring
		            grdInurings.ClearSelection();
		            updateRow.Select();
		            updateRow.BeginEdit();
		            
		            WebGrid_SetFieldText(cells.GetNamedItem("PortfolioNameList"), String("Hello World" &amp;#43; (now.getSeconds() &amp;#43; now.getMilliseconds())));

		            // Indicate row's data has been changed and set row stats to edit
		            updateRow.Update();
		            updateRow.SetDataChanged();
		            updateRow.AddPendingChanges();
		            grdInurings.MarkEdit();		             
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    //=================================================================
		    // Function     : grdInurings_OnRowContextMenu
		    // Description  : This method will create Context menu based on the
		    //              : row.
		    //=================================================================
		    function grdInurings_OnRowContextMenu(controlId, rowType, rowElement, menuObject) {
		        try {
		             
		            // Manage Portfolios
		            var managePortfolios = new WebMenuItem();
		              managePortfolios.Text = "Manage Portfolios";
		            managePortfolios.Name = "itmManagePortfolios";
		            managePortfolios.OnClick = "WebGrid_UpdateSelectedRow";
		            menuObject.Items.Add(managePortfolios);

		            
		        }
		        catch (ex) { ShowJSException(ex); }
		    }
		&amp;lt;/script&amp;gt;
	&amp;lt;/HEAD&amp;gt;
	&amp;lt;body MS_POSITIONING="GridLayout"&amp;gt;
		&amp;lt;form id="Form1" method="post" runat="server"&amp;gt;
		&amp;lt;input type="button" value="Update Selected Row" onclick="javascript:WebGrid_UpdateSelectedRow();" /&amp;gt;
		&amp;lt;input type="button" value="New Row Causing More Data To Load" onclick="javascript:AddNewRowForceNewData();" /&amp;gt;
		&amp;lt;input type="button" value="Add 5 new rows and delete 2" onclick="javascript:AddNewRows(5, 2);" /&amp;gt;
		&amp;lt;input type="button" value="Delete Selected Row" onclick="javascript:WebGrid_DeleteSelectedRow();" /&amp;gt;
		&amp;lt;input type="button" value="Add 10 new rows" onclick="javascript:AddNewRows(10);" /&amp;gt;
		&amp;lt;asp:button runat="server" Text="Check WebRowChanges" OnClick="PerformInuringsGridBatchUpdate" /&amp;gt;
			&amp;lt;iswebgrid:webgrid id=WebGrid1 runat="server" Height="279px" Width="896px" 
			DefaultStyleMode="Elegant"
                                    UseDefaultStyle="True"
			OnInitializeDataSource="WebGrid1_InitializeDataSource"&amp;gt;
                    &amp;lt;LayoutSettings AutoHeight="false" AutoWidth="false" AllowBatchUpdate="true" BatchUpdateSettings-PromptUnsavedChanges="false"
        BatchUpdateSettings-AutomaticObjectUpdate="false" AllowEdit="Yes" EditOnClick="True"
        AllowAddNew="Yes" AllowDelete="Yes" PromptBeforeDelete="true" NewRowLostFocusAction="AlwaysPrompt"
        ResetNewRowValuesOnError="True" RowHeightDefault="22px" AllowFilter="Yes" AllowSelectColumns="Yes"
        AllowSorting="Yes" HideColumnsWhenGrouped="Default" AllowExport="Yes" InProgressUIBehavior="ChangeCursorToHourGlass"
        ApplyFiltersKey="Enter" AllowColumnFreezing="Yes" ShowFilterStatus="True" PagingMode="VirtualLoad"
        VerboseEditingInformation="False" FilterBarVisible="True" PagingExportMode="ExportAllData"
        CellPaddingDefault="0" AlwaysShowHelpButton="False" VirtualPageSize="25"          
        &amp;gt;
        &amp;lt;ClientSideEvents OnRowContextMenu="grdInurings_OnRowContextMenu" /&amp;gt;
					&amp;lt;HeaderStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#ECE9D8" ForeColor="Black" Height="20px"
						Font-Size="8pt" Font-Names="Verdana" BorderColor="#ACA899"&amp;gt;
						&amp;lt;BorderSettings&amp;gt;
							&amp;lt;Left Color="White"&amp;gt;&amp;lt;/Left&amp;gt;
							&amp;lt;Top Color="White"&amp;gt;&amp;lt;/Top&amp;gt;
						&amp;lt;/BorderSettings&amp;gt;
					&amp;lt;/HeaderStyle&amp;gt;
					&amp;lt;FrameStyle BackColor="#F1EFE2"&amp;gt;&amp;lt;/FrameStyle&amp;gt;
					&amp;lt;GroupByBox&amp;gt;
						&amp;lt;LabelStyle BorderStyle="Solid" BorderWidth="1px" BackColor="White" Font-Size="8pt" Font-Names="Verdana"
							BorderColor="Navy"&amp;gt;&amp;lt;/LabelStyle&amp;gt;
						&amp;lt;Style BackColor="Gray"&amp;gt;
						&amp;lt;/Style&amp;gt;
					&amp;lt;/GroupByBox&amp;gt;
					&amp;lt;EditTextboxStyle BorderStyle="None" BorderWidth="0px" Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/EditTextboxStyle&amp;gt;
					&amp;lt;NewRowStyle BackColor="White" ForeColor="DarkGray" Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/NewRowStyle&amp;gt;
					&amp;lt;FocusCellStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="Navy"&amp;gt;&amp;lt;/FocusCellStyle&amp;gt;
					&amp;lt;RowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="White" Font-Size="8pt"
						Font-Names="Verdana"&amp;gt;&amp;lt;/RowStyle&amp;gt;
					&amp;lt;GroupRowInfoStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#F1EFE2" Font-Size="8pt" Font-Names="Verdana"
						BorderColor="White"&amp;gt;
						&amp;lt;BorderSettings&amp;gt;
							&amp;lt;Bottom Color="Silver"&amp;gt;&amp;lt;/Bottom&amp;gt;
							&amp;lt;Right Color="Silver"&amp;gt;&amp;lt;/Right&amp;gt;
						&amp;lt;/BorderSettings&amp;gt;
					&amp;lt;/GroupRowInfoStyle&amp;gt;
					&amp;lt;SelectedRowStyle BackColor="LightSteelBlue"&amp;gt;&amp;lt;/SelectedRowStyle&amp;gt;
					&amp;lt;AlternatingRowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="AntiqueWhite"
						Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/AlternatingRowStyle&amp;gt;
					&amp;lt;StatusBarStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#ECE9D8" Font-Size="8pt" Font-Names="Verdana"
						BorderColor="#ACA899"&amp;gt;
						&amp;lt;Padding Bottom="2px" Left="2px" Top="2px" Right="2px"&amp;gt;&amp;lt;/Padding&amp;gt;
					&amp;lt;/StatusBarStyle&amp;gt;
					&amp;lt;StatusBarCommandStyle&amp;gt;
						&amp;lt;Over BorderWidth="1px" BorderColor="Navy" BorderStyle="Solid" BackColor="CornflowerBlue"&amp;gt;&amp;lt;/Over&amp;gt;
						&amp;lt;Normal&amp;gt;
							&amp;lt;Padding Bottom="1px" Left="1px" Top="1px" Right="1px"&amp;gt;&amp;lt;/Padding&amp;gt;
						&amp;lt;/Normal&amp;gt;
						&amp;lt;Active BackColor="RoyalBlue" BaseStyle="Over"&amp;gt;&amp;lt;/Active&amp;gt;
					&amp;lt;/StatusBarCommandStyle&amp;gt;
					&amp;lt;PreviewRowStyle ForeColor="#0000C0"&amp;gt;&amp;lt;/PreviewRowStyle&amp;gt;
				&amp;lt;/LayoutSettings&amp;gt;
				&amp;lt;RootTable DataKeyField="CustomerID" Caption="Customers" GridLineStyle="NotSet"&amp;gt;
					&amp;lt;Columns&amp;gt;
					        &amp;lt;ISWebGrid:WebGridColumn Caption="Portfolio Name" Name="PortfolioNameList"  
                                                DataType="System.String" ColumnType="Text" EditType="NoEdit" NewRowEditType="NoEdit"
                                                FilterEditType="TextBox" Width="100px"&amp;gt;
                                            &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Address" DataMember="Address" Name="Address" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						 
					 &amp;lt;ISWebGrid:WebGridColumn Caption=" " Name="AddPortfolio" DataMember=""
                        ButtonText="Add Portfolio" DataType="System.String" ColumnType="Template" EditType="NoEdit"
                        NewRowEditType="SameAsEditType" FilterEditType="NoEdit" Width="65px"&amp;gt;
                        &amp;lt;ButtonStyle BackColor="AliceBlue"&amp;gt;
                            &amp;lt;Padding Top="2px" Left="1px" Right="1px" Bottom="1px" /&amp;gt;
                        &amp;lt;/ButtonStyle&amp;gt;
                        &amp;lt;CellTemplate&amp;gt;
                            &amp;lt;img runat="server" id="imgPortfolio"  alt="Manage this treaty's portfolios"
                                border="0" style="padding-top: 1px;"  
                             /&amp;gt;
                        &amp;lt;/CellTemplate&amp;gt;
                    &amp;lt;/ISWebGrid:WebGridColumn&amp;gt;
                    
                &amp;lt;iswebgrid:WebGridColumn Caption="City" DataMember="City" Name="City" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="CompanyName" DataMember="CompanyName" Name="CompanyName" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="ContactName" DataMember="ContactName" Name="ContactName" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="ContactTitle" DataMember="ContactTitle" Name="ContactTitle" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Country" DataMember="Country" Name="Country" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="CustomerID" DataMember="CustomerID" Name="CustomerID" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Fax" DataMember="Fax" Name="Fax" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Phone" DataMember="Phone" Name="Phone" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="PostalCode" DataMember="PostalCode" Name="PostalCode" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Region" DataMember="Region" Name="Region" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
					&amp;lt;/Columns&amp;gt;
				&amp;lt;/RootTable&amp;gt;
			&amp;lt;/iswebgrid:webgrid&amp;gt;
			 
		&amp;lt;/form&amp;gt;
	&amp;lt;/body&amp;gt;
&amp;lt;/HTML&amp;gt;
&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Tue, 21 Sep 2010 04:21:56 GMT</pubDate><dc:creator>gordont</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;Ok, I will describe the code that I sent earlier to Michael. &lt;/p&gt;
&lt;p&gt;First, grid will set the ID column manually to (AUTO), means that the ID is generated automatically from database, for example if the ID is auto increment or GUID.&lt;/p&gt;
&lt;p&gt;For this, you need to inform grid by using the following code:&lt;/p&gt;
&lt;p /&gt;
&lt;p&gt;&lt;br /&gt;cells.GetNamedItem("ProductID").SetChanges("false");&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;After that, when you add pending changes, the grid will set the field to AUTO and you can add as many row that you want to add without getting the error.&lt;/p&gt;
&lt;p&gt;Have you tried to use the code? If not, please try to use the code and let me know if it's not working. Because I have test and some customers have used it without any problem.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;
&lt;p /&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Mon, 20 Sep 2010 13:08:02 GMT</pubDate><dc:creator>SAgosto</dc:creator><category>AllowAddItem</category><description>&lt;blockquote&gt;&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;I am sorry but I am confused with the scenario. I will try to explain it again, using the sample that michael gave, you dont need to set the productID, the grid will fill it as (AUTO) which will be change to the correct data after we accept all the changes. Do you get the same behaviour? or do you got error or unsuccesfull adding the new record?&lt;/p&gt;&lt;p&gt;Best Regards,&lt;/p&gt;&lt;p&gt;Gordon Tumewu&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Why would it be set to "(AUTO)"? &lt;/p&gt;
&lt;p&gt;I see the following code by Michael but don't understand why it is set to "false"?  cells.GetNamedItem("ProductID").SetChanges("false");&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Here's an example. Please click on the "New Row Causing More Data To Load" button more than once. You will see the exception because the ProductID field isn't set. I don't want to set it nor do I see the need to.&lt;br /&gt;        &lt;/p&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="BatchUpdateDeleteRow.aspx.cs" Inherits="BatchUpdateDeleteRow" %&amp;gt;
&amp;lt;%@ Register TagPrefix="iswebgrid" Namespace="ISNet.WebUI.WebGrid" Assembly="ISNet.WebUI.WebGrid" %&amp;gt;

&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;
&amp;lt;HTML&amp;gt;
	&amp;lt;HEAD runat=server&amp;gt;
		&amp;lt;title&amp;gt;BatchUpdateDeleteRow&amp;lt;/title&amp;gt;
		&amp;lt;meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"&amp;gt;
		&amp;lt;meta name="CODE_LANGUAGE" Content="C#"&amp;gt;
		&amp;lt;meta name="vs_defaultClientScript" content="JavaScript"&amp;gt;
		&amp;lt;meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"&amp;gt;
		&amp;lt;script language="javascript"&amp;gt;
		    function WebGrid_SetFieldText(field, text, updateValueField) {
		        try {
		            // Set field's text
		            // NOTE: Default the value to the text if flag is not specified
		            if (field == null) { return; }
		            if (typeof (updateValueField) == "undefined") { updateValueField = true; }
		            field.SetText(text, updateValueField, true);
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function AddNewRowForceNewData() 
		    {
		        var grdInurings = ISGetObject("WebGrid1");
			
		        // Create new row
		        var newRow = grdInurings.RootTable.NewRow();
		        if (newRow == null) { return false; }

		        // Default new row's data
		        // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
		        grdInurings.ClearSelection();

		        // Address
		        var cells = newRow.GetCells();
		        var address = cells.GetNamedItem("Address");
		        if (address != null) { WebGrid_SetFieldText(address, ""); }

		        // Customer ID
		        var customerID = cells.GetNamedItem("CustomerID");
		        if (customerID != null) 
		        {
		            window.alert("Why does this field need to be set for a new row when the ID is not set until the data is committed?");

		        }
		        newRow.AddPendingChanges();

		        // Focus
		        newRow.Select();
		        
		        return true;
		    }

		    function AddNewRows(numOfNewRows, numOfDeleteRows) 
		    {
		        var grdInurings = ISGetObject("WebGrid1");
		        if (typeof (numOfDeleteRows) == "undefined") { numOfDeleteRows = 0; }		        
		        for (var index = 0; index &amp;lt; numOfNewRows; index&amp;#43;&amp;#43;)
		        {
		            var newRow = AddNewRow();
		            if (index &amp;lt; numOfDeleteRows) 
		            {
		                WebGrid_DeleteRow(newRow);
		            }
		        }
		        
		        return true;
		    }

		    function AddNewRow() 
		    {
		        // Create new row
		        var grdInurings = ISGetObject("WebGrid1");
		        var newRow = grdInurings.RootTable.NewRow();
		        if (newRow == null) { return false; }

		        // Default new row's data
		        // NOTE: Scroll to row before new row to avoid lag from WebGrid loading more data (if exist)
		        grdInurings.ClearSelection();

		        // Address
		        var cells = newRow.GetCells();
		        var address = cells.GetNamedItem("Address");
		        if (address != null) { WebGrid_SetFieldText(address, ""); }

		        // Customer ID
		        var customerID = cells.GetNamedItem("CustomerID");
		        if (customerID != null) 
		        {
		            var now = new Date();
		            WebGrid_SetFieldText(customerID, String((now.getSeconds() &amp;#43; now.getMilliseconds())));
		        }
		        newRow.AddPendingChanges();
		        return newRow;
		    }

		    function WebGrid_GetSelectedRow() 
		    {
		        try {
		            // Get selected row
		            var grid = ISGetObject("WebGrid1");
		            if (grid == null) { return; }
		            var selObj = grid.GetSelectedObject();
		            if (selObj == null) { return; }
		            return selObj.ToRowObject();
		        }
		        catch (ex) { ShowJSException(ex); }
		    }

		    function WebGrid_DeleteSelectedRow() 
		    {
		        try {
		            WebGrid_DeleteRow(WebGrid_GetSelectedRow());
		            
		        }
		        catch (ex) { ShowJSException(ex); }
		    }
		    
		    function WebGrid_DeleteRow(row)	
		    {
		        try 
		        {

		            if (row == null) { return; }
		            row.Delete();
		            row.AddPendingChanges();

		            var rowElement = row.GetElement();
		            //if (rowElement != null) { rowElement.style.display = "none"; }
		        }
		        catch (ex) { ShowJSException(ex); }
		    }
		&amp;lt;/script&amp;gt;
	&amp;lt;/HEAD&amp;gt;
	&amp;lt;body MS_POSITIONING="GridLayout"&amp;gt;
		&amp;lt;form id="Form1" method="post" runat="server"&amp;gt;
		&amp;lt;input type="button" value="New Row Causing More Data To Load" onclick="javascript:AddNewRowForceNewData();" /&amp;gt;
		&amp;lt;input type="button" value="Add 5 new rows and delete 2" onclick="javascript:AddNewRows(5, 2);" /&amp;gt;
		&amp;lt;input type="button" value="Delete Selected Row" onclick="javascript:WebGrid_DeleteSelectedRow();" /&amp;gt;
		&amp;lt;input type="button" value="Add 10 new rows" onclick="javascript:AddNewRows(10);" /&amp;gt;
		&amp;lt;asp:button runat="server" Text="Check WebRowChanges" OnClick="PerformInuringsGridBatchUpdate" /&amp;gt;
			&amp;lt;iswebgrid:webgrid id=WebGrid1 runat="server" Height="279px" Width="896px" 
			OnInitializeDataSource="WebGrid1_InitializeDataSource"&amp;gt;
                    &amp;lt;LayoutSettings AutoHeight="false" AutoWidth="false" AllowBatchUpdate="true" BatchUpdateSettings-PromptUnsavedChanges="false"
        BatchUpdateSettings-AutomaticObjectUpdate="false" AllowEdit="Yes" EditOnClick="True"
        AllowAddNew="Yes" AllowDelete="Yes" PromptBeforeDelete="true" NewRowLostFocusAction="AlwaysPrompt"
        ResetNewRowValuesOnError="True" RowHeightDefault="22px" AllowFilter="Yes" AllowSelectColumns="Yes"
        AllowSorting="Yes" HideColumnsWhenGrouped="Default" AllowExport="Yes" InProgressUIBehavior="ChangeCursorToHourGlass"
        ApplyFiltersKey="Enter" AllowColumnFreezing="Yes" ShowFilterStatus="True" PagingMode="VirtualLoad"
        VerboseEditingInformation="False" FilterBarVisible="True" PagingExportMode="ExportAllData"
        CellPaddingDefault="0" AlwaysShowHelpButton="False" VirtualPageSize="25"&amp;gt;
					&amp;lt;HeaderStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#ECE9D8" ForeColor="Black" Height="20px"
						Font-Size="8pt" Font-Names="Verdana" BorderColor="#ACA899"&amp;gt;
						&amp;lt;BorderSettings&amp;gt;
							&amp;lt;Left Color="White"&amp;gt;&amp;lt;/Left&amp;gt;
							&amp;lt;Top Color="White"&amp;gt;&amp;lt;/Top&amp;gt;
						&amp;lt;/BorderSettings&amp;gt;
					&amp;lt;/HeaderStyle&amp;gt;
					&amp;lt;FrameStyle BackColor="#F1EFE2"&amp;gt;&amp;lt;/FrameStyle&amp;gt;
					&amp;lt;GroupByBox&amp;gt;
						&amp;lt;LabelStyle BorderStyle="Solid" BorderWidth="1px" BackColor="White" Font-Size="8pt" Font-Names="Verdana"
							BorderColor="Navy"&amp;gt;&amp;lt;/LabelStyle&amp;gt;
						&amp;lt;Style BackColor="Gray"&amp;gt;
						&amp;lt;/Style&amp;gt;
					&amp;lt;/GroupByBox&amp;gt;
					&amp;lt;EditTextboxStyle BorderStyle="None" BorderWidth="0px" Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/EditTextboxStyle&amp;gt;
					&amp;lt;NewRowStyle BackColor="White" ForeColor="DarkGray" Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/NewRowStyle&amp;gt;
					&amp;lt;FocusCellStyle BorderStyle="Solid" BorderWidth="1px" BorderColor="Navy"&amp;gt;&amp;lt;/FocusCellStyle&amp;gt;
					&amp;lt;RowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="White" Font-Size="8pt"
						Font-Names="Verdana"&amp;gt;&amp;lt;/RowStyle&amp;gt;
					&amp;lt;GroupRowInfoStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#F1EFE2" Font-Size="8pt" Font-Names="Verdana"
						BorderColor="White"&amp;gt;
						&amp;lt;BorderSettings&amp;gt;
							&amp;lt;Bottom Color="Silver"&amp;gt;&amp;lt;/Bottom&amp;gt;
							&amp;lt;Right Color="Silver"&amp;gt;&amp;lt;/Right&amp;gt;
						&amp;lt;/BorderSettings&amp;gt;
					&amp;lt;/GroupRowInfoStyle&amp;gt;
					&amp;lt;SelectedRowStyle BackColor="LightSteelBlue"&amp;gt;&amp;lt;/SelectedRowStyle&amp;gt;
					&amp;lt;AlternatingRowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="AntiqueWhite"
						Font-Size="8pt" Font-Names="Verdana"&amp;gt;&amp;lt;/AlternatingRowStyle&amp;gt;
					&amp;lt;StatusBarStyle BorderStyle="Solid" BorderWidth="1px" BackColor="#ECE9D8" Font-Size="8pt" Font-Names="Verdana"
						BorderColor="#ACA899"&amp;gt;
						&amp;lt;Padding Bottom="2px" Left="2px" Top="2px" Right="2px"&amp;gt;&amp;lt;/Padding&amp;gt;
					&amp;lt;/StatusBarStyle&amp;gt;
					&amp;lt;StatusBarCommandStyle&amp;gt;
						&amp;lt;Over BorderWidth="1px" BorderColor="Navy" BorderStyle="Solid" BackColor="CornflowerBlue"&amp;gt;&amp;lt;/Over&amp;gt;
						&amp;lt;Normal&amp;gt;
							&amp;lt;Padding Bottom="1px" Left="1px" Top="1px" Right="1px"&amp;gt;&amp;lt;/Padding&amp;gt;
						&amp;lt;/Normal&amp;gt;
						&amp;lt;Active BackColor="RoyalBlue" BaseStyle="Over"&amp;gt;&amp;lt;/Active&amp;gt;
					&amp;lt;/StatusBarCommandStyle&amp;gt;
					&amp;lt;PreviewRowStyle ForeColor="#0000C0"&amp;gt;&amp;lt;/PreviewRowStyle&amp;gt;
				&amp;lt;/LayoutSettings&amp;gt;
				&amp;lt;RootTable DataKeyField="CustomerID" Caption="Customers" GridLineStyle="NotSet"&amp;gt;
					&amp;lt;Columns&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Address" DataMember="Address" Name="Address" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="City" DataMember="City" Name="City" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="CompanyName" DataMember="CompanyName" Name="CompanyName" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="ContactName" DataMember="ContactName" Name="ContactName" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="ContactTitle" DataMember="ContactTitle" Name="ContactTitle" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Country" DataMember="Country" Name="Country" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="CustomerID" DataMember="CustomerID" Name="CustomerID" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Fax" DataMember="Fax" Name="Fax" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Phone" DataMember="Phone" Name="Phone" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="PostalCode" DataMember="PostalCode" Name="PostalCode" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
						&amp;lt;iswebgrid:WebGridColumn Caption="Region" DataMember="Region" Name="Region" Width="100px"&amp;gt;&amp;lt;/iswebgrid:WebGridColumn&amp;gt;
					&amp;lt;/Columns&amp;gt;
				&amp;lt;/RootTable&amp;gt;
			&amp;lt;/iswebgrid:webgrid&amp;gt;
			 
		&amp;lt;/form&amp;gt;
	&amp;lt;/body&amp;gt;
&amp;lt;/HTML&amp;gt;
&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Mon, 20 Sep 2010 00:08:26 GMT</pubDate><dc:creator>gordont</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Hi Shawn,&lt;/p&gt;&lt;p&gt;I am sorry but I am confused with the scenario. I will try to explain it again, using the sample that michael gave, you dont need to set the productID, the grid will fill it as (AUTO) which will be change to the correct data after we accept all the changes. Do you get the same behaviour? or do you got error or unsuccesfull adding the new record?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Gordon Tumewu&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Thu, 16 Sep 2010 23:24:30 GMT</pubDate><dc:creator>SAgosto</dc:creator><category>AllowAddItem</category><description>&lt;blockquote&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;As I said earlier, WebGrid still need the DataKeyField to make the scenario worked. Actually you just need to set it to your primary key and the problem should be solved.&lt;/p&gt;&lt;p&gt;Best Regards,&lt;/p&gt;&lt;p&gt;Gordon Tumewu&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;You are not understanding the problem.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;I understand the DataKeyField needs to be set.  The problem is that the DataKeyField needs a value for each row or the exception message that has been discussed above is displayed.  The only way around that is to specify a value for the DataKeyField.  This is poor design because this data will not be available until the data is committed to the database.  How do you get around NOT having to set this data for newly created fields?&lt;/p&gt;</description></item><item><title>ClientSide API - Can't add new row</title><link>http://www.intersoftsolutions.com/Community/WebGrid/ClientSide-API---Cant-add-new-row/</link><pubDate>Tue, 22 Sep 2009 16:34:02 GMT</pubDate><dc:creator>Michael</dc:creator><category>AllowAddItem</category><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I can not add new row programmatically, when a column is defined as autoincrement.&lt;/p&gt;
&lt;p&gt;Please see attached files.&lt;/p&gt;
&lt;p&gt;The first added row was typing in "new row". It works!&lt;/p&gt;
&lt;p&gt;The second added row was programmacally added to grid. For more detailed info see ProgrammacallyAdd.aspx.&lt;/p&gt;</description></item></channel></rss>