سؤال

How can I modify the default filter operator on DevExpress.Xtragrid.gridcontrol and add a new value there with what is already there.

Simple I want to add "Greater than > 0" to a numeric value column, keeping what it is already there.

هل كانت مفيدة؟

المحلول 2

Check out this link, it helps. http://documentation.devexpress.com/#windowsforms/CustomDocument2567

gridView1.ActiveFilterString = "[YOURCOLUMN] > 0";

نصائح أخرى

To add yet another condition please combine it with 'AND':

gridView1.ActiveFilterString = gridView1.ActiveFilterString + " AND [ColumnName] > 0";

Update:
You can use the ColumnView.MRUFilters property to customize the recently used filters collection if necessary. Elements in the collection are represented by ViewFilter objects.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top