删除指定的第几行,可一次一行或多行.
procedure TKStringGrid.DeleteRow(Row: integer;Count:integer=1);
var i,j:integer;
begin
if (Row<0) or (Row>=RowCount) then exit;
if Count<1 then exit;
for i:=1 to Count do
begin
for j:=Row to RowCount-1 do
begin
Rows[j] := Rows[j+1];
end;
Rows[j].Clear;
RowCount:=RowCount-1;
end;
end;