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 Object) As 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 Object) As Boolean If value IsNot Nothing AndAlso TypeOf value Is Integer Then Return DirectCast(value, Integer) = 1 End If Return False End Function End ClassI 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?
I resolved this by correctly coding the IBooleanConverter.
Thanks
Hi Daryl007,
What data source are you using?
Can you send me a complete sample for further investigation.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
I would like to know how to update the underlying field on row exit, etc..
I have autocrud turned on. when I click on the save button on the page, the value has not changed.
So by changing the value on the grid from false to true, doesn't reflect back on the data row.
Here is the source of the grid..
<ig:WebDataGrid ID="wdgSWStatusCode" runat="server" AutoGenerateColumns="False" EnableTheming="False" Height="75%" StyleSetName="Default" Width="98%" Font-Names="lucinda sans" DataKeyFields="SWSTATUS" EnableDataViewState="True" ViewStateMode="Enabled" EnableAjax="False" > <Columns> <ig:BoundDataField DataFieldName="SWSTATUS" Key="SWSTATUS" Width="150px" DataType="System.String"> <Header Text="Status Code" /> </ig:BoundDataField> <ig:BoundDataField DataFieldName="Definition" Key="Definition" Width="400px" DataType="System.String" EnableMultiline="True"> <Header Text="Definition" /> </ig:BoundDataField> <ig:BoundCheckBoxField DataFieldName="SHOWBEFOREBAFO" DataType="System.Int32" Key="SHOWBEFOREBAFO"> <Header Text="Use in All Rounds" /> </ig:BoundCheckBoxField> <ig:BoundCheckBoxField DataFieldName="MOVESTONEXTROUND" Key="MOVESTONEXTROUND"> <Header Text="Advance to Subsequent Rounds" /> </ig:BoundCheckBoxField> </Columns> <Behaviors> <ig:EditingCore> <Behaviors> <ig:CellEditing Enabled="true"> <ColumnSettings> </ColumnSettings> <EditModeActions MouseClick="Single" /> </ig:CellEditing> <ig:RowAdding> </ig:RowAdding> <ig:RowDeleting /> </Behaviors> </ig:EditingCore> <ig:Selection RowSelectType="Single" ColumnSelectType="Single"> </ig:Selection> <ig:ColumnResizing> </ig:ColumnResizing> <ig:RowSelectors RowNumbering="True"> </ig:RowSelectors> </Behaviors> </ig:WebDataGrid>I am using 11.2.20112.2086 with asp.net version 4.0
Ah,, I had left of the Implements line for each one...
So now it works..
However my next question is, how do I get the values back to 1 and 0 when the record is updating?
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.