View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0004092 | JEDI VCL | 00 JVCL Components | public | 2007-04-05 05:02 | 2007-06-19 09:13 |
| Reporter | ultimo | Assigned To | obones | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | won't fix | ||
| Product Version | 3.30 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0004092: JvDBGrid CheckBox column | ||||
| Description | Refer to 0004027. with Field String and value 0 and 1 I propose this solution for not utilize event for default value function TJvDBGrid.EditWithBoolBox(Field: TField): Boolean; begin if FBooleanEditor then begin Result := (Field.DataType = ftBoolean); if (not Result) and (Field.DataType in [ftSmallint, ftInteger, ftLargeint, ftWord, ftString, ftWideString]) then begin FStringForTrue := '1'; FStringForFalse := '0'; if Assigned(FOnCheckIfBooleanField) then Result := FOnCheckIfBooleanField(Self, Field, FStringForTrue, FStringForFalse) else result := (Field.AsString = FStringForTrue) or (Field.AsString = FStringForFalse); end; end else Result := False; end; | ||||
| Tags | No tags attached. | ||||