title: Setting GridView header filters
body: <p>I have a DevExpress gridview with a description column that has column header filters enabled. The problem is that having these filters enabled makes it so an entry is added to the drop down for every data item in the list which isn't really desirable because the entries are generally paragraphs of text. Instead I would like to restrict the options to just All, Blanks, and Non blanks but I haven't been able to find a clear example of how this might be accomplished. Thanks for the help!</p>
  
  <p><a href="https://i.stack.imgur.com/v0qDK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v0qDK.png" alt="enter image description here"></a></p>
  
  <p>ANSWER: </p>
  
  <pre><code>settings.HeaderFilterFillItems = (sender, e) =&gt;
  {
      if (e.Column.FieldName == "Description")
      {
         e.Values.Clear();
         e.AddShowAll();
         e.Values.Insert(1, FilterValue.CreateShowBlanksValue(e.Column, "(Blanks)"));
         e.Values.Insert(2, FilterValue.CreateShowNonBlanksValue(e.Column, "(Non Blanks)"));
      }
  };
  </code></pre>