-
大小: 116KB文件类型: .zip金币: 2下载: 0 次发布日期: 2021-06-01
- 语言: 其他
- 标签: DataGridView 过滤
资源简介
DataGridView过滤(附带完整代码及示例)

代码片段和文件信息
//---------------------------------------------------------------------
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE
//IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//PARTICULAR PURPOSE.
//---------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Visualstyles;
using System.Collections;
using System.Reflection;
namespace DataGridViewAutoFilter
{
///
/// Provides a drop-down filter list in a DataGridViewColumnHeaderCell.
///
public class DataGridViewAutoFilterColumnHeaderCell : DataGridViewColumnHeaderCell
{
///
/// The ListBox used for all drop-down lists.
///
private static FilterListBox dropDownListBox = new FilterListBox();
///
/// A list of filters available for the owning column stored as
/// formatted and unformatted string values.
///
private System.Collections.Specialized.OrderedDictionary filters =
new System.Collections.Specialized.OrderedDictionary();
///
/// The drop-down list filter value currently in effect for the owning column.
///
private String selectedFilterValue = String.Empty;
///
/// The complete filter string currently in effect for the owning column.
///
private String currentColumnFilter = String.Empty;
///
/// Indicates whether the DataGridView is currently filtered by the owning column.
///
private Boolean filtered;
///
/// Initializes a new instance of the DataGridViewColumnHeaderCell
/// class and sets its property values to the property values of the
/// specified DataGridViewColumnHeaderCell.
///
/// The DataGridViewColumnHeaderCell to copy property values from.
public DataGridViewAutoFilterColumnHeaderCell(DataGridViewColumnHeaderCell oldHeaderCell)
{
this.ContextMenuStrip = oldHeaderCell.ContextMenuStrip;
this.ErrorText = oldHeaderCell.ErrorText;
this.Tag = oldHeaderCell.Tag;
this.ToolTipText = oldHeaderCell.ToolTipText;
this.Value = oldHeaderCell.Value;
this.ValueType = oldHeaderCell.ValueType;
// Use Hasstyle to avoid creating a new style object
// when the style property has not previously been
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 914 2011-08-02 16:35 WindowsFormsApplication2\WindowsFormsApplication2.sln
文件 25088 2011-08-04 15:38 WindowsFormsApplication2\WindowsFormsApplication2.suo
目录 0 2011-08-04 13:57 WindowsFormsApplication2\WindowsFormsApplication2\
文件 159 2011-08-04 13:57 WindowsFormsApplication2\WindowsFormsApplication2\app.config
目录 0 2011-08-01 15:16 WindowsFormsApplication2\WindowsFormsApplication2\bin\
目录 0 2011-08-04 13:58 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\
文件 35840 2011-08-04 15:23 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
文件 159 2011-08-04 13:57 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe.config
文件 69120 2011-08-04 15:23 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
文件 11600 2011-08-04 15:24 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe
文件 159 2011-08-04 13:57 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.config
文件 490 2010-03-17 22:39 WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.manifest
目录 0 2011-08-01 15:16 WindowsFormsApplication2\WindowsFormsApplication2\bin\Release\
文件 68492 2011-08-04 13:46 WindowsFormsApplication2\WindowsFormsApplication2\DataGridViewAutoFilterColumnHeaderCell.cs
文件 6939 2011-08-04 13:46 WindowsFormsApplication2\WindowsFormsApplication2\DataGridViewAutoFilterTextBoxColumn.cs
文件 9232 2011-08-04 15:22 WindowsFormsApplication2\WindowsFormsApplication2\Form1.cs
文件 8666 2011-08-04 14:14 WindowsFormsApplication2\WindowsFormsApplication2\Form1.Designer.cs
文件 6017 2011-08-04 14:14 WindowsFormsApplication2\WindowsFormsApplication2\Form1.resx
目录 0 2011-07-20 13:54 WindowsFormsApplication2\WindowsFormsApplication2\obj\
目录 0 2011-07-20 13:54 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\
目录 0 2011-08-04 15:23 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\
文件 4440 2011-07-22 13:42 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6410 2011-08-04 15:23 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 380 2011-08-04 14:14 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\GenerateResource.read.1.tlog
文件 926 2011-08-04 14:14 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\GenerateResource.write.1.tlog
目录 0 2011-08-04 13:57 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\TempPE\
文件 4608 2011-08-04 13:57 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 1217 2011-08-04 15:24 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.csproj.FileListAbsolute.txt
文件 35840 2011-08-04 15:23 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.exe
文件 180 2011-08-04 14:14 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Form1.resources
文件 69120 2011-08-04 15:23 WindowsFormsApplication2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.pdb
............此处省略10个文件信息
- 上一篇:信息论与编码第五章课后习题答案
- 下一篇:STC12交流信号采样电路图
相关资源
- 协同过滤算法源码
- 图片存储到数据库保存二进制文件并
- DataGridView财务金额格式显示
- 过滤器源代码
- crossfilter tutorial
- 锤子Thor1.2+Thor1.34+300条过滤器规则
- springCloud路由网管负载均衡及拦截过滤
- 基于item-user混合协同过滤的推送系统
- 论文研究 - 基于DEA-Malmquist指数的玉米
- 论文研究 - 基于协同过滤和人工神经
- kettle 数据过滤验证
- β-SiC微粉过滤分级实验研究
- 井下千米钻机煤泥水就地循环利用工
- MapReduce基于物品的协同过滤算法实现
- sparkMllib协同过滤测试数据ml-1m
- crack破解补丁
- 推荐系统手册(英文版)
- 推荐系统基于用户和Item的协同过滤算
- myeclipse下基于协同过滤算法的电影推
- 敏感词统计与过滤系统
- Linux网络数据包抓取源码分析和包过滤
- 基于协同过滤算法的电影推荐系统
- NDIS中间层 NDIS6过滤驱动开发笔记
- PCAN-Explorer5基本使用方法new
- 用户的协同过滤算法数据集及代码实
- ( Netflix Prize中的协同过滤算法.zip )
- 基于VC的包过滤防火墙论文源码有效地
- 基于数据包过滤的防火墙设计与实现
- 包过滤主机防火墙技术的研究
- NLPIR分词、去停用词
评论
共有 条评论