'Declaration Public Class BoolFilter Inherits C1.DataFilter.BoolFilterBase
public class BoolFilter : C1.DataFilter.BoolFilterBase
'Declaration Public Class BoolFilter Inherits C1.DataFilter.BoolFilterBase
public class BoolFilter : C1.DataFilter.BoolFilterBase
This class is used to instantiate a filter which can be applied to the Boolean type values. It helps to filter out the data based on their value i.e. True/False. The listing below provides the details about different options that can be set for the filter using this class.
private void InitializeBoolFilter()
{
//Initialize the BoolFilter
BoolFilter boolFilter = new BoolFilter();
//Sets the name of the data item property to which the current filter applies
boolFilter.PropertyName = "Discontinued";
//Sets the header text of the filter
boolFilter.HeaderText = "Discontinued";
//Sets the text of the label of the checkbox
boolFilter.Text = "Discontinued";
//Sets the value of the current filter
boolFilter.Value = true;
//Sets the default value of the current filter
boolFilter.DefaultValue = true;
//Determines whether the current filter applies or not when the Value is equal to DefaultValue
boolFilter.IgnoreDefault = false;
//Adds the BoolFilter to the FilterCollection
c1DataFilter1.Filters.Add(boolFilter);
}
System.Object
C1.DataFilter.Filter
C1.DataFilter.BoolFilterBase
C1.Win.DataFilter.BoolFilter