|
using System;
using System.Windows.Forms;
using System.ComponentModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BrainTechLLC.DAL;
namespace DALSampleApplication
{
public class PersonDataGridView : DGView<Person>
{
private string _query = string.Empty;
public string Query
{
get { return _query; }
set
{
if (!_query.Equals(value))
{
_query = value;
RebindAll();
}
}
}
protected override List<Person> PopulateRowData()
{
if (string.IsNullOrEmpty(_query))
{
return Person.GetAll();
}
else
{
return Person.DALQueryUsingFreeText_List(_query);
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Currently working as a Senior Silverlight Developer with Troppus Software in Superior, CO. I enjoy statistics, programming, new technology, playing the cello, and reading codeproject articles.