procedure TfmGroupControlMain.SetPath(ID: PItemIDList);
begin
lvMain.Items.BeginUpdate;
try
PopulateIDList(ID);
if lvMain.Items.Count > 0 then
begin
lvMain.Selected := lvMain.Items[0];
lvMain.Selected.Focused := True;
lvMain.Selected.MakeVisible(False);
end;
finally
lvMain.Items.EndUpdate;
end;
end;
begin
lvMain.Items.BeginUpdate;
try
PopulateIDList(ID);
if lvMain.Items.Count > 0 then
begin
lvMain.Selected := lvMain.Items[0];
lvMain.Selected.Focused := True;
lvMain.Selected.MakeVisible(False);
end;
finally
lvMain.Items.EndUpdate;
end;
end;
解决方案 »
- 显示的错误是ADOQ_user1:'商品编号' not found,我数据表里明明是有用户编号的
- 我居然关闭不窗口,关闭窗口有那么难么??
- 如何快速导入数据库(ORACLE)
- 我把ToolButton的Action都分别设置了ActionList中的Action,为什幺程序运行的时候ToolButton都不可以用了啊.
- 如何使窗体最大化按钮变灰(新手上路,多多指教)
- 机器在运行游戏的时候,能不能在屏幕上显示一个gif动画
- 问个问题(和愚人节无关)
- access问题!
- ADOQuery的问题
- 我想学delphi网络编程,有什么好的书籍吗?或电子书籍的网站??
- 我想让FR在预览时自加一个按钮直接打印,而不调用打印机对话框?
- 停止服务器的时候出现‘Terminate Thread Timout’异常
其他的意思就是让第一行选中,焦点在listview的第一行上
这个函数做什么用的?