知道它和 stringgrid 类似  stringgrid 的会改 cells[0,1]:='xxx'可到了easygrid 列标头  A  B   C  D 字样 和 行头  1  2  3  如何更改其它文字呢 ?

解决方案 »

  1.   

    这个你得去修改源码,例如修改col标题function ColTitle(Index: Integer) : string;
    var
      Hi,Lo : Integer;
    begin
      Result := '';
      if (Index < 0) or (Index > 255) then Exit;
      Hi := Index div 26;
      Lo := Index mod 26;
      if Index<=25 then
         Result := Chr(Ord('A')+Lo)+'????'
      else
         Result := Chr(Ord('A')+Hi-1) + Chr(Ord('A')+Lo)+'????';
    end;
      

  2.   

    var
      Hi,Lo : Integer;
    begin
      Result := '';
      if (Index < 0) or (Index > 255) then Exit;
      case index of
      0: Result := '股';
      1: Result := '方';
      2: Result := '数';
      3: Result := '方';
      4: Result := '备';
      5: Result := '执';
      else
         Result := ''; 
      end;