如何用程序控制StringGrid的行移动,如第三行移动到第九行(我不太喜欢用数据库)
解决方案 »
- 怎么删除dbgrid中数据?
- 英文XP下编的Delphi 7程序的中文问题!
- sendmessage(frmMain.handle, wm_setredraw, 0, 0 );问题
- 有没有好的实现软件注册的方案?? C/S结构,数据库应用系统(来者有分啊!!!)
- 创意问题 最好是各位姐姐,妹妹,大娘,大婶近来最好,知女人心者男士也好(别删好么?)
- 从dbgrid中取两个字段相减,字段为时间类型,用adotable连接的,代码该如何写!在线等待!
- 如何解决delphi2.0平台上开发的软件在delphi7.0平台上重新开发?
- clientdataset 的问题,
- 100分问个线程的难题
- 如何通过DELPHI访问MS SQL数据库
- 除法"/"问题和在StringGrid中找的记录如何使它卷出到当前屏幕来。
- 在线急需,请帮帮忙
for i:=1 to stringgrid1.ColCount-1 do
str[i]:=stringgrid1.Cells[i,9];
form1.StringGrid1.SetFocus;还是指第三行的数据也一起移动到第九行?procedure TForm1.Button1Click(Sender: TObject);
var
list:TStringList;
i,j:integer;
begin
list:=TStringList.Create;
list.Clear;
i:=form1.StringGrid1.ColCount;
for j:=0 to i-1 do
begin
list.Add(form1.StringGrid1.Cells[j,8]);//记录第九行的数据
end;
for j:=0 to i-1 do
begin
form1.StringGrid1.Cells[j,8]:=form1.StringGrid1.Cells[j,2];
form1.StringGrid1.Cells[j,2]:=list.Strings[j];
end;end;