如何才能点 Button1 = 点一下 DBCtrlGrid1 的向上滚动
点 Button2 = 点一下 DBCtrlGrid1 的向下滚动
请给出源码!
点 Button2 = 点一下 DBCtrlGrid1 的向下滚动
请给出源码!
解决方案 »
- 列举文件夹内所有文件 Delphi
- ●●●【阿日】好走...●●●
- 我下载了一个牛仔布厂成品出仓管理系统delphi,还有诸多不懂~~
- Delphi 5中有没有类似SQL(dateadd)的方法,以实现日期自动加减天数。
- 数组问题
- DbGrid表格中显示列标题的那一行叫什么,要设置这一行的高度怎么办
- 真的简单问题
- dbgrid中,下拉条拖动的时候,为什么会出现重复记录!!!
- 怎么才能显示窗体而在任务栏不显示那个窗口条
- 哇呀呀,偶上午的这个贴子怎么打不开?服务器怎么近来老出错?只好再问一次,请大家推荐一个制作帮助的软件吧,偶用了耶书制造,感觉不太好,有没有其他中文的呢?//牛虻
- 如何在DBGRID中自动给记录所在的行中的一个字段赋值呢....现场给分
- SOS!奇怪问题,请奇怪高手帮忙,自启动程序的图标在哪?
假设DBCtrlGrid1一次显示5条记录procedure TForm1.Button1Click(Sender: TObject);
var
w:integer;
begin
for w:= 1 to 5 do Table1.Next
end;procedure TForm1.Button2Click(Sender: TObject);
var
w:integer;
begin
for w:= 1 to 5 do Table1.Prior;
end;
DescriptionCall DoKey to perform the operation specified by the Key parameter. For example, use DoKey to remap keystrokes from an OnKeyDown event handler.The actions performed for the different values of Key are given in the following tableValue ActiongkNull Do nothing.
gkEditMode Toggle the EditMode property.
gkPriorTab Move to the previous panel.
gkNextTab Move to the next panel.
gkLeft Move one panel to the left.
gkRight Move one panel to the right.
gkUp Move one panel up.
gkDown Move one panel down.
gkScrollUp Move one panel up.
gkScrollDown Move one panel down.
gkPageUp Move ColCount * RowCount records up in the dataset.
gkPageDown Move ColCount * RowCount records down in the dataset.
gkHome Move to the first record in the dataset.gkEnd Move to the last record in the dataset.
gkInsert Insert a new record prior to the current record in the dataset and set EditMode to true.
gkAppend Insert a new record at the end of the dataset and set EditMode to true.
gkDelete Delete the current record from the dataset and set EditMode to false.
gkCancel Cancel any edits not written to the dataset and set EditMode to false.