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;