Implementing multi-column filtering on the IBindingListView

A couple of years ago, I a whitepaper about how to implement searching and sorting on the generic BindingList for data binding in Windows Forms. About the same time my colleague, Karl, wrote a whitepaper about adding an auto-filter capability to the Windows Forms DataGridView control. Karl and I had talked about bridging the gap…


DataGridView Watermark Cell

I returned from my end-of-the-year vacation to find the following reader comment in my inbox:> I am trying to create a custom DGV column that will show a watermark for the empty cells , in the same manner like windows live search box … any advice? In case you are not familiar with this behavior,…


Client Application Services and WPF

Although my sample for Client Application Services (CAS) uses Windows Forms, you can adapt it to Windows Presentation Foundation (WPF) with little effort. The configuration steps are the same, and the client source code is the same, although some of the code would go in WPF equivalents of Windows Forms event handlers (for example, using an…


Implementing the IBindingListView for filtering

Due to customer feedback and requests, I’ve been working on an article that demonstrates a simple implementation of the filtering portion of the IBindingListView. This implementation works with the DataGridViewAutoFilter code that Karl first published in the summer of 2006 and allows you to search, sort and filter a list of business objects. In the course…


Filtering Code

using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; using System.Windows.Forms; using System.Text.RegularExpressions; using System.Reflection; using System.Collections;   public class SimpleFilteredList<T> : BindingList<T>, IBindingListView {     public SimpleFilteredList() {}   #region Searching protected override bool SupportsSearchingCore {     get     {        return true;     } } protected override int FindCore(PropertyDescriptor prop, object key) {    …


DataGridviewAutoFilter sample updated

I’ve made a few bug-fixes to my DataGridViewAutoFilter sample, which is described in Building a Drop-Down Filter List for a DataGridView Column Header Cell. It might be a week or two until the article is updated (as of December 5, 2007), but the new sample download has already been posted. The download contains C# and…


Client Application Services sample updated for Visual Studio 2008 RTM

I have updated my Client Application Services sample (previous posts here and here) to work with the Visual Studio 2008 RTM release. See Additionally, the final documentation is now available on MSDN. See: Client Application Services System.Web.ClientServices System.Web.ClientServices.Providers If you have used a previous version of the sample, you might need to deal with…


Client Application Services sample and walkthrough updated

Back in May, I posted an early version of my Client Application Services walkthrough, which was used as a lab session at TechEd. Since then, there have been many improvements to both Visual Studio and the walkthrough. For one thing, the Beta 2 version of Orcas (now officially known as “Visual Studio 2008”) was released….


Tech-Ed Notes

Thanks to everyone who stopped by the Acropolis and Windows Forms booth at Tech-Ed! Double thanks if you answered a few of my questions about documentation. You can be sure that the Windows .NET Client UE team will be reading your comments. A few of you reported your frustration with the Smart Client Orcas Features…


Client Application Services in Windows Forms: End-to-End Walkthrough Available

The Beta 1 release of Visual Studio Code Name “Orcas” includes a new feature called Client Application Services. This feature enables Windows client applications to easily access user-management services hosted by a centralized ASP.NET Web service application. The documentation for client application services is still in progress, but we have created an end-to-end walkthrough to demonstrate the…