﻿<?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 - ClientUI - Client UI UXGridView's  function of NewRowPosition problem</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Client-UI-UXGridViews-function-of-NewRowPosition-problem/</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>Client UI UXGridView's  function of NewRowPosition problem</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Client-UI-UXGridViews-function-of-NewRowPosition-problem/</link><pubDate>Fri, 08 Mar 2013 03:05:47 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Please ensure that the following condition has been met in order to implement Bottom NewRowPosition.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="color: rgb(31, 73, 125);"&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;CanUserAddRows&lt;/strong&gt; sets to &lt;strong&gt;True&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;EmptyRowsVisibility&lt;/strong&gt; sets to &lt;strong&gt;Visible&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&lt;strong&gt;ItemsSource&lt;/strong&gt; property is an editable property.&lt;br&gt;&lt;/br&gt;
&lt;span&gt;For example:  when create a project using &lt;strong&gt;Intersoft ClientUI MVVM Data Application (WCF RIA)&lt;/strong&gt; project template, we should be able to find &lt;strong&gt;LoadData()&lt;/strong&gt; method – the method which is called when the data repository needs to fetch data from the repository, either during initial load, or due to query change – in &lt;strong&gt;GridViewModelGenericBase.cs&lt;/strong&gt; class.&lt;br&gt;&lt;/br&gt;The original code is as follow.
&lt;pre&gt;protected virtual void LoadData()
{
    this.IsBusy = true;
    this.DataSource.GetData
    (
        ...
        (items) =&amp;gt;
        {
            this.IsBusy = false;
            this.Items = new PagedCollectionView(items);
        },
        ...
    );
}&lt;/pre&gt;&lt;br&gt;&lt;/br&gt;&lt;span&gt;The above code will causing the same problem, can’t add new row. Modifying the code into the following will solve the problem.&lt;br&gt;&lt;/br&gt;
&lt;pre&gt;protected virtual void LoadData()
{
    this.IsBusy = true;
    this.DataSource.GetData
    (
        ...
        (items) =&amp;gt;
        {
            this.IsBusy = false;
            this.Items = new PagedCollectionView(new ObservableCollection&amp;lt;T&amp;gt;(items.Cast&amp;lt;T&amp;gt;()));
        },
        ...
    );
}&lt;/pre&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="color: rgb(31, 73, 125);"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Client UI UXGridView's  function of NewRowPosition problem</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Client-UI-UXGridViews-function-of-NewRowPosition-problem/</link><pubDate>Tue, 05 Mar 2013 21:36:29 GMT</pubDate><dc:creator>susu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When I use UXGridView  functions of  NewRowPosition , I have set  EmptyRowsVisibility="Visible" NewRowPosition="Bottom" EnterNewRowOnClick="True", but when I click the Empty Row ,it could not add any new row(Please see the Attached picture),I wonder if my operation was invalid? And how to realize it? Thank you !&lt;/p&gt;</description></item></channel></rss>