﻿<?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 - Row disappears after saving when filter is applied on a date field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-disappears-after-saving-when-filter-is-applied-on-a-date-field/</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>Row disappears after saving when filter is applied on a date field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-disappears-after-saving-when-filter-is-applied-on-a-date-field/</link><pubDate>Mon, 12 Oct 2015 03:57:16 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I created a simple page of WebGrid based on your description. All its columns created at runtime.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e)
{
    string Columns = "";
        
    if (!IsPostBack)
    {
        // clear all columns before repopulated
        WebGrid1.RootTable.Columns.Clear();
        WebGrid1.RootTable.SortedColumns.Clear();
        WebGrid1.RootTable.GroupedColumns.Clear();
        WebGrid1.RootTable.FilteredColumns.Clear();

        Columns = "EmployeeID,LastName,FirstName,Title,BirthDate,HireDate,Address,City,Region,Country";
        string[] ColumnsCollection = Columns.Split(',');

        foreach (string Column in ColumnsCollection)
        {
            WebGridColumn col = new WebGridColumn();
            col.DataMember = Column;
            col.Caption = Column;

            WebGrid1.RootTable.Columns.Add(col);
        }
    }
}&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;Following list shows the step-by-step that were done on my local test in order to test the reported problem.&lt;/span&gt;&lt;/p&gt;
&lt;ol style="color: #1f497d;"&gt;&lt;li&gt;View RowDisappearWhenFilterApplied.aspx sample file in browser.&lt;/li&gt;&lt;li&gt;After the page loaded, apply filter on BirthDate column through the filter bar. For example: filter text is: 01/01/1960 00:00:00 and filter type is: Less Than.&lt;/li&gt;&lt;li&gt;Move down to a record. For example: "Steven Buchanan" record. Then modify its "City" from London to Manchester.&lt;/li&gt;&lt;li&gt;Save the record by pressing Shift + Enter.&lt;/li&gt;&lt;li&gt;The record doesn't disappear from the grid.&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&lt;span style="color: #1f497d;"&gt;I enclosed my simple sample as attachment. Please have the sample evaluated on your end and let me know if you find anything that I might miss during my attempt to reproduce the problem.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Row disappears after saving when filter is applied on a date field</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Row-disappears-after-saving-when-filter-is-applied-on-a-date-field/</link><pubDate>Fri, 09 Oct 2015 15:32:05 GMT</pubDate><dc:creator>dbar@diasfalisis.gr</dc:creator><description>&lt;p&gt;Our problematic scenario is as following: We have a WebGrid in our application with all its columns created at runtime. A filter is applied on a date column through the filter bar. We then move down to a record and edit a field (not the date field). When the record is saved (by pressing Shift+Enter), the record disappears from the grid! If the grid is refreshed, the record shows up again.&lt;/p&gt;&lt;p&gt;This happens only when a date filter is applied. It works fine for other type of fields.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Version of WebGrid 9.0.7200&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Any ideas?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Regards,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt;"&gt;Dimitris&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>