那只有计算每一行的高度,与StringGird 的高度结合起来,进行动态计算啦,很烦的

解决方案 »

  1.   

    用Ehlib控件,功能强大!“http://211.100.17.210:208/”中有此控件
      

  2.   

    Please modify the StringGrid.pas and recompile it
      

  3.   

    OnDrawCell中
    if(ARow==StringGrid1->TopRow +StringGrid1->VisibleRowCount-1)
    {
      StringGrid1->Canvas->TextOutA(Rect.Left+2,Rect.Top+2,StringGrid1->Cells[ACol][StringGrid1->RowCount-1]);
    }
    OnTopLeftChanged中
    StringGrid1->Invalidate();
    试一试,不过有些煽动
      

  4.   

    zygtp:
       TopRow属性它好像有个问题,就是向上移的时候覆盖在另外一条记录上,如果合计这一行如果没有值,但会显示下面那条记录的值,这样就不是很好,你说是吗?能解决吗?