zoukankan      html  css  js  c++  java
  • cxDBVerticalGrid

    定位在第一行并显示内置编辑器

    cxDBVerticalGrid1.FocusedRow := cxDBVerticalGrid1.Rows[0]; 
    cxDBVerticalGrid1.ShowEdit;


    procedure TFrm_luru.Read_fllawmd;
    var
      I: Integer;
      AItem: TcxDBEditorRow;
    begin
      ShowHourglassCursor;
      try
        cxDBVerticalGrid.BeginUpdate;
        try
          with cxDBVerticalGrid.DataController.DataSet do
            for I := 0 to FieldCount - 1 do
            begin
                  AItem := TcxDBEditorRow(cxDBVerticalGrid.Add(TcxDBEditorRow));
                  with AItem.Properties do
                  begin
                        DataBinding.FieldName := Fields[I].FieldName;
                        Caption := DataBinding.DefaultCaption;
                               if Fields[I].DataType=FtMemo then
                                     begin                                  EditPropertiesClassName:='TcxBlobEditProperties';
                                     end;
                                  if Fields[I].DataType=ftDataSet then
                                  begin
                                       cds:=Tclientdataset.Create(application);
                                       cds.DataSetField:=TDataSetField(Fields[I]);
                                       cds.Active:=true;
                                       cds.Edit;
                                       EditPropertiesClassName:='TcxButtonEditProperties';
                                       TcxButtonEditProperties(EditProperties).OnButtonClick:=ButtonClickDemo;
                                  end;   
                  end;
                   AItem.Visible := Fields[I].Visible;

            end;
        finally
          vv.EndUpdate;
        end;
      finally
        HideHourglassCursor;
      end;
    end;


  • 相关阅读:
    sql编码造成的安全问题(基于mysql8.0版本)
    [HY000] [2054] php连接mysql时错误
    jetbrains(phpstrom,webstorm等)破解
    XSS(二)
    XSS(一)
    ctf中rsa攻击方法
    扩展欧几里得算法证明及求乘法逆元
    mac泛洪攻击&arp欺骗(python脚本)
    Flutter 中 实现 单选对话框 和页面中实现单选框
    解决Flutter混合开发时 is not a readable directory 问题
  • 原文地址:https://www.cnblogs.com/railgunman/p/7894970.html
Copyright © 2011-2022 走看看