打印本文 打印本文 关闭窗口 关闭窗口
一個可以顯示CheckBox或RadioButtons的StringGrid類.
作者:武汉SEO闵涛  文章来源:敏韬网  点击数1921  更新时间:2009/4/23 18:30:35  文章录入:mintao  责任编辑:mintao
;

function TStringGridEx.GetSelCells(ColIndex,RowIndex:integer):String;
var i,SelRow:integer;
begin
  SelRow := 0;
  for i:=1 to RowCount-1 do
  begin
   if RowSelected[I] then inc(SelRow);
   if SelRow = RowIndex then Break;
  end;
  Result := FSelRows[i].Strings[ColIndex];
end;

function TStringGridEx.GetSelCnt:Integer;
var i,R:integer;
begin
  R:=0;
  for i:=0 to Rowcount-1 do
   if RowSelected[i] then Inc(R);
  Result := R;
end;

end.

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口