zoukankan      html  css  js  c++  java
  • 如何确定dbgrid选择的是记录而不是分组

       with cxgrdbtblvwGrid1DBTableView1.Controller do
        if FocusedRecord is TcxGridDataRow then
          begin
            i :=  cxgrdbtblvwGrid1DBTableView1.DataController.GetItemByFieldName('WMM_No').Index;
            RESULT := '''WMM_No'':' + ''''+ vartostr(cxgrdbtblvwGrid1DBTableView1.Controller.FocusedRecord.Values[i]) + '''';
            I := cxgrdbtblvwGrid1DBTableView1.DataController.GetItemByFieldName('WMD_ShaftID').Index;
            result := result + ','  +
                      '''WMD_ShaftID'':' + '''' + vartostr(cxgrdbtblvwGrid1DBTableView1.Controller.FocusedRecord.Values[i]) + '''';
    
            I := cxgrdbtblvwGrid1DBTableView1.DataController.GetItemByFieldName('WPM_ID').Index;
            result := result + ','  +
                      '''WPM_ID'':' + '''' + vartostr(cxgrdbtblvwGrid1DBTableView1.Controller.FocusedRecord.Values[i]) + '''';
    
            I := cxgrdbtblvwGrid1DBTableView1.DataController.GetItemByFieldName('WMD_ID').Index;
            result := result + ','  +
                      '''WMD_ID'':' + '''' + vartostr(cxgrdbtblvwGrid1DBTableView1.Controller.FocusedRecord.Values[i]) + '''';
    
            result := '{'+result + '}';
          end;
  • 相关阅读:
    pip包安装问题
    spyder中让生成的图像单独在窗口中显示
    错误的英语提示翻译 以及经常犯的无错误
    程序结构
    运算符
    js jq计算器
    jQuery筛选选择器
    jQuery获取标签信息
    javascript的getTime函数
    animate动画
  • 原文地址:https://www.cnblogs.com/usegear/p/11759890.html
Copyright © 2011-2022 走看看