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
250
Not able to compile example from the documentation
posted

I'm not able to compile the example on this page. The error is flagged as the compiler can't find the *Match* value/property in the *ComparisonOperator* class.

    FilterDropDownItem item;
    item = new FilterDropDownItem(
      new ComparisonCondition(ComparisonOperator.Match, "^[A-F]"), "A-F");
    e.DropDownItems.Add(item);

I've found other examples like this one so I'm guessing that it's supposed to work but that I'm confusing something, as I'm very new to Infragistics' software.

There's even a graphical example at the site showing how the behavior renders to the screen. However, I'm not able to get the code to work for the reason specified above.

Following up on suggestions from StackOverflow, I also tried to eliminate incorrect references by stating the namespaces veeery explicitly. The atrocious result is below.

      Infragistics.Windows.DataPresenter.FilterDropDownItem poc;
      poc = new Infragistics.Windows.DataPresenter.FilterDropDownItem(
        new Infragistics.ComparisonCondition(Infragistics.ComparisonOperator.Match, "a"), "a");