在DataGireView中加筛选条件
生活随笔
收集整理的这篇文章主要介绍了
在DataGireView中加筛选条件
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
dt (查询出的数据源)
BindingSource source = new BindingSource();
source.DataSource = dt;
foreach (DataGridViewColumn col in dgvGoodImport.Columns)
{
col.HeaderCell = new DataGridViewAutoFilterColumnHeaderCell(col.HeaderCell);
}
this.dgvGoodImport.DataSource = source;
转载于:https://www.cnblogs.com/hx8023zx/archive/2012/03/27/2420230.html
总结
以上是生活随笔为你收集整理的在DataGireView中加筛选条件的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Ouath 验证过程
- 下一篇: 鸽巢原理 学习笔记