Columns Without Custom Filter Header

Apr 26, 2011 at 5:47 PM

Is it possible to switch off the customized filter header by setting some property to display the basic header as that column happens to be action button column?

 

Apr 28, 2011 at 2:51 AM

Well, the short answer to a long explanation is no. The column header has a defined(fixed) height to accommodate the two row layout. Think how strange it would look for one column to have a differing height. In the version of this grid I use, I do configure/hide the columns which should not have a filter.  Here is a quick example to demonstrate the essence of how to accomplish what you desire. You should place this method on the JibGrid itself.

 

public void HideFilterControl(DataGridColumn column)
{
   var ctrl = FilterHeaders.Where(i => i.Column == column).FirstOrDefault(); 
   if (ctrl != null)
     ctrl.Visibility=Visibility.Hidden;
}