Skip to content

Replies

0
Theresa Watson
Theresa Watson answered on Apr 28, 2016 1:03 PM

That is my question. How do I setup different data filters for the two columns? 

0
Theresa Watson
Theresa Watson answered on Apr 27, 2016 5:36 PM

I am writing in vb and you provided c#, anyway you can convert?

And just so I am making myself clear.  I have a Boolean in my dataset that I want to convert to "Yes"/"No".  And in another column I have a String field with two values (not "Yes"/"No") that I am converting to Boolean.

I have successfully changed the later in CheckEditorDataFilter but I can't apply that to the Boolean field because the values are different.

Public Function Convert(ByVal args As Infragistics.Win.EditorDataFilterConvertArgs) As Object Implements Infragistics.Win.IEditorDataFilter.Convert

Select Case args.Direction

Case ConversionDirection.EditorToOwner

args.Handled = True

Select Case CType(args.Value, CheckState)

Case CheckState.Checked

Return "35"

Case CheckState.Unchecked

Return "37"

Case CheckState.Indeterminate

Return String.Empty

End Select

Case ConversionDirection.OwnerToEditor

args.Handled = True

If args.Value = "35" Then

Return CheckState.Checked

ElseIf args.Value = "37" Then

Return CheckState.Unchecked

Else

Return CheckState.Indeterminate

End If

End Select

End Function

0
Theresa Watson
Theresa Watson answered on Apr 27, 2016 4:30 PM

Basically I am not following how to use the UltraCheckEditor  since I have two columns that I need to filter

0
Theresa Watson
Theresa Watson answered on Apr 26, 2016 9:35 PM

I have been working with that code but It references using "use an UltraCheckEditor as the Column's EditorControl and specify the DataFilter on the UltraCheckEditor rather than the Column's Editor"

In my ds I have a Boolean value that I need to convert to string Yes/No and a string field that I need to convert to boolean