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
2235
IBooleanConverter issue..
posted

Maybe it's just me.. but I have the following code..

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports Infragistics.Web.UI.GridControls
Public Class IntConverter : Implements IBooleanConverter
 
    Public ReadOnly Property DefaultFalseValue() As Object
        Get
            Return 0
        End Get
    End Property
 
    Public ReadOnly Property DefaultTrueValue() As Object
        Get
            Return 1
        End Get
    End Property
 
    Public Function IsFalse(value As ObjectAs Boolean
        If value IsNot Nothing AndAlso TypeOf value Is Integer Then
            Return DirectCast(value, Integer) = 0
        End If
        Return False
    End Function
 
    Public Function IsTrue(value As ObjectAs Boolean
        If value IsNot Nothing AndAlso TypeOf value Is Integer Then
            Return DirectCast(value, Integer) = 1
        End If
        Return False
    End Function
End Class


I get an error saying that "Class 'IntConverter' must implement
'Function IsTrue(value As Object) As Boolean' for
interface 'Infragistics.Web.UI.GridControls.IBooleanConverter'.


Any ideas what is going on?
Parents
  • 7566
    Verified Answer
    posted

    Hi Daryl007,

     

    Try to create this class again. Inherit and implement the interface. Try to rebuild clean the solution. Since when you experience this error?

    Some more information will be helpful. Environmen, version of the controls used. Also some changes that cause this error.

     

    Thank you.

     

    Sincerely,

    Georgi Sashev

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

Reply Children