procedure TFrmRuleEdit.CreateCols;
var
Column: TcxGridDBColumn;
begin
cdsPowerPrj.First;
while not cdsPowerPrj.Eof do
begin
Column := viewPower.CreateColumn;
Column.Caption := cdsPowerPrj.FieldByName(‘description‘).Text;
Column.DataBinding.FieldName := cdsPowerPrj.FieldByName(‘powerName‘).Text;
Column.PropertiesClassName := ‘TcxCheckBoxProperties‘;
Column.Width := 50;
cdsPowerPrj.Next;
end;
end;
时间: 2024-10-16 13:38:54