D duhai_lee Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-27 #3 删除行: stringgrid.rowcount := 1; 删除内容: for i:= 2 to stringgrid.rowcount -1 for j := 0 to stringgrid.colcount -1do stringgrid.cell[i,j] := '';
删除行: stringgrid.rowcount := 1; 删除内容: for i:= 2 to stringgrid.rowcount -1 for j := 0 to stringgrid.colcount -1do stringgrid.cell[i,j] := '';
U units Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-27 #4 to duhai_lee; 我这样做过,但是这样做的话本来第一行是有点凸起类似标题栏的,这样改过之后就变成平的乐,好奇怪阿!
X xuxiaohan Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-27 #5 简单: procedure TForm2.Button1Click(Sender: TObject); begin self.StringGrid1.RowCount:=2; end;
U units Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-27 #7 我自己用了一个办法,就是 StringGrid->RowCount=2; StringGrid->Rows[1]->Clear(); 谢谢两位