private void opmGridView_ShowFilterPopupDate(object sender, DevExpress.XtraGrid.Views.Grid.FilterPopupDateEventArgs e) { if (e.Column.ColumnType.Name != "DateTime") { return; } DateTime yarin = DateTime.Today.AddDays(1); CriteriaOperator yarindanOnce = new BinaryOperator(e.Column.FieldName, yarin, BinaryOperatorType.Less); CriteriaOperator crit2 = new GroupOperator(GroupOperatorType.And, yarindanOnce); e.List.Add(new DevExpress.XtraEditors.FilterDateElement("Bugün ve Öncesi", string.Format("< {0:dd.MM.yy}", yarin), crit2)); }
private void OnShowFilterPopupDate(object sender, DevExpress.XtraGrid.Views.Grid.FilterPopupDateEventArgs e) { FunctionOperator op = new FunctionOperator("IsDayOff", new OperandProperty(e.Column.FieldName)); e.List.Add(new DevExpress.XtraEditors.FilterDateElement("IsDayOff", "", op)); }