在 DBGrid1DrawColumnCell中
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
Rect可以用来判断
end;
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
Rect可以用来判断
end;
解决方案 »
- QuickReport分组小计变成了累计(连DEMO都是如此),如何实现小计?
- 新手提问:一个关于三层分布式数据库开发的问题
- 为什么Raize控件在2000中编译之后在XP上显示的数据是乱码,在XP中编译之后却正常。
- 用DELPHI制作扑克纸牌的问题!
- 再问资源释放问题?
- 怎样提取出dbgrid中当前记录中某个字段的值?
- 我的电脑感染了FunLove病毒!!!!!有谁能知道解决办法!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- 關於DirectSound 和Delphi 的問題
- 有关delphi的lookup字段的问题?
- 众高手请深入的详解一下消息,句柄!(详细,详细再详细!,深入,深入,再深入!)
- Delphi5+MsSqlServer的连接问题
- 请教关于 WebBrowser 的问题
procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
begin
if (Rect.left>DBGrid1.ClientRect.Left)and
(Rect.left<DBGrid1.ClientRect.Right) then
Begin
可以看见
end
else
Begin
不可以看见
end
end;
//设要查的字段名为:fldTest;
var
k:integer;
begin
for k:=0 to dbgrid1.Columns.count-1 do
begin
if dbGrid1.Columns[0].FieldName=fldTest then
begin
if dbGrid1.Columns[0].Visible then
begin
ShowMessage('该字段显示!');
end
else begin
ShowMessage('该字段没有显示!');
end;
then
end;
end;