Hi,
I have a problem with a ListGridField in a ListGrid which is ListGridFieldType.BOOLEAN.
The CheckBox, shown in this field, is always "true" (checked). Whether the Data from DB is true or false, the CheckBox always shows true.
I`m getting Data from the Database and I´m working with a DataSource. In my DataSource I declared the Field for die ListGridField as "DataSourceBooleanField".
The DTO`s value is a Boolean for this field, set to "true" or "false", depending on what it has to be.
Here´s my code:
ListGridField:
DataSource:
Can anyone help me pleas?
Thx :-)
-=anni=-
I have a problem with a ListGridField in a ListGrid which is ListGridFieldType.BOOLEAN.
The CheckBox, shown in this field, is always "true" (checked). Whether the Data from DB is true or false, the CheckBox always shows true.
I`m getting Data from the Database and I´m working with a DataSource. In my DataSource I declared the Field for die ListGridField as "DataSourceBooleanField".
The DTO`s value is a Boolean for this field, set to "true" or "false", depending on what it has to be.
Here´s my code:
ListGridField:
Code:
ListGridField lgfCheck = new ListGridFieldAF4J("dsCheck", "Check"); lgfCheck.setType(ListGridFieldType.BOOLEAN);
Code:
DataSourceBooleanField dsCheck = new DataSourceBooleanField("dsCheck");
Thx :-)
-=anni=-
Comment