Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Comparisonoperator
posted
Hi, How can i programmatically reset the comparison operator in the filter row to its default value? thanks.
Parents
No Data
Reply
  • 1803
    posted

    Hi rohit..

     hope this piece of code helps you out .

    ''to reset the default comparison operator

    UltraGrid1.DisplayLayout.Bands(0).Columns("Your Column").FilterOperatorDefaultValue = FilterOperatorDefaultValue.Default

    ''to reset the default comparison type

    UltraGrid1.DisplayLayout.Bands(0).Columns("").FilterComparisonType = FilterComparisonType.Default

    ''this is for reseting logical operator.

    UltraGrid1.DisplayLayout.Rows.ColumnFilters.ResetLogicalOperator()

     

     

Children