컴퓨터/Delphi
[QuantumGrid] CheckBox 사용
나즈나
2018. 11. 30. 03:58
퀀텀그리드를 사용하기 위해 학습하면서 체크박스 사용이 필요할 경우,
cxgrid 선택 후
Data Controller.DataModeController.GridMode property = False
Data Controller.DataModeController.SmartRefresh property = True
Data Controller.KeyFieldNames property = UniqueField 명 설정(PrimaryKey 등)
View 선택 후
36800
View -> Column 선택 후
DataBinding.FieldName property = null
DataBinding.ValueType = Boolean
Properties property = CheckBox
Properties.NullStyle = nssUnchecked
Properties.ValueChecked = True / Type = Boolean //체크시 입력할 값
Properties.ValueGrayed = Null / Type = Null // 중간선택시 입력할 값
Properties.ValueUnchecked = False / Type = Boolen //체크해제시 입력할 값
AllowGrayed := False; //중간 선택 허용할 경우 True
ValueChecked := True; //체크값 기준
ValueUnchecked := False; //해제값 기준