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;
  • 相关阅读:
    spring-mvc dispatcherServlet
    常用注解
    spring基础
    消息转换
    高级装配
    Leetcode第242题:有效的字母异位词
    Leetcode第76题:最小覆盖子串
    Leetcode633题平方数之和
    Leetcode454题四数之和II
    java从虚拟机执行角度解析案例(转)
  • 原文地址:https://www.cnblogs.com/usegear/p/11759890.html
Copyright © 2011-2022 走看看