关于TDBGridEh有两个问题请教:
1.我如何实现在一个单元格里复制内容?
procedure TfrmExpertMain2.ppmCopyClick(Sender: TObject);
begin
if (ActiveControl is TDBGridEh) then
with TDBGridEh(ActiveControl) do
if CheckCopyAction and (geaCopyEh in EditActions) then
begin
Screen.Cursor := crHourGlass;
DBGridEh_DoCopyAction(TDBGridEh(ActiveControl), False);
Screen.Cursor := crDefault;
end;
end;
但是这种方法往往只针对多个单元,如果要复制一个单元里的内容,只能用ctrl-c。请问有什么方法解决这个问题吗?2.TDBGridEh有类似于EXCEL的下拉过滤功能吗?就是在标题那里有下拉框,通过选择来筛选数据?
1.我如何实现在一个单元格里复制内容?
procedure TfrmExpertMain2.ppmCopyClick(Sender: TObject);
begin
if (ActiveControl is TDBGridEh) then
with TDBGridEh(ActiveControl) do
if CheckCopyAction and (geaCopyEh in EditActions) then
begin
Screen.Cursor := crHourGlass;
DBGridEh_DoCopyAction(TDBGridEh(ActiveControl), False);
Screen.Cursor := crDefault;
end;
end;
但是这种方法往往只针对多个单元,如果要复制一个单元里的内容,只能用ctrl-c。请问有什么方法解决这个问题吗?2.TDBGridEh有类似于EXCEL的下拉过滤功能吗?就是在标题那里有下拉框,通过选择来筛选数据?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货