本文整理汇总了C#中GridColumn.ClearFilter方法的典型用法代码示例。如果您正苦于以下问题:C# GridColumn.ClearFilter方法的具体用法?C# GridColumn.ClearFilter怎么用?C# GridColumn.ClearFilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GridColumn
的用法示例。
在下文中一共展示了GridColumn.ClearFilter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: _setFilterGridStringID
public void _setFilterGridStringID(GridColumn col)
{
try
{
this.CloseUp += delegate(object sender, CloseUpEventArgs e)
{
DevExpress.XtraGrid.Views.Grid.GridView view = col.View as DevExpress.XtraGrid.Views.Grid.GridView;
if (view.GridControl.DataSource == null ||
((DataTable)view.GridControl.DataSource).Rows.Count == 0) return;
col.ClearFilter();
string IDString = this._getStrSelectedIDs();
if (IDString == "(-1)") return;
if (view.ActiveFilterString == "")
{
view.ActiveFilterString = col.FieldName + " in " + IDString;
}
else
{
view.ActiveFilterString += " and (" + col.FieldName + " in " + IDString + ")";
}
};
}
catch
{
}
}
示例2: _setFilterGridStringDecimal
public void _setFilterGridStringDecimal(GridColumn col)
{
try
{
this.CloseUp += delegate(object sender, CloseUpEventArgs e)
{
DevExpress.XtraGrid.Views.Grid.GridView view = col.View as DevExpress.XtraGrid.Views.Grid.GridView;
col.ClearFilter();
string DecString = this._getStrSelectedIDsDecimal();
if (DecString == "(-1)") return;
if (view.ActiveFilterString == "")
{
view.ActiveFilterString = col.FieldName + " in " + DecString;
}
else
{
view.ActiveFilterString += " and (" + col.FieldName + " in " + DecString + ")";
}
};
}
catch
{
}
}