怎样能使grid在没有数据的情况下显示网格??
如何更改背景??并且在grid的背景下能够显示 '没有数据' 字符串??我查了查 dbgrideh 不知道在哪里??
如何更改背景??并且在grid的背景下能够显示 '没有数据' 字符串??我查了查 dbgrideh 不知道在哪里??
解决方案 »
- 为什么多线程退出时提示错误类EOSError
- 如何读取RichEdit中选中文字的背景色?
- 请问'Error Creating Form:Ancestor for 'TfrmChild' not found'是什么错误,如何解决
- 怪!同样的代码,在DELPHI中分别编译二次,结果不一样,请大侠解答
- gz文件:如何解压?如何在不解压的情况下浏览其中的文件?
- 200分>我的计算机能运行,为何*部*分*的*其他机器不能运行?
- 请问如何用insert into opendatasource导出到excel?
- 升级为五星,热烈祝贺,散分!
- 一个查询处理的问题
- DELPHI的系统时间怎么取呀?
- 通过ADOQUERY 查询完毕了,想直接修改出某一个字段的值怎么弄?
- 需要Fastreport 和 hiercube
DataCol: Integer; Column: TColumn; State: TGridDrawState);
var
C1, C2: TColor;
begin
if gdSelected in State then
begin
with TDBGrid(Sender).Canvas do
begin
C1 := Brush.Color;
C2 := Font.Color;
Brush.Color := ClRed;//红底
Font.Color := Clyellow;//黄字
TDBGrid(Sender).DefaultDrawColumnCell(Rect, DataCol, Column, State);
Brush.Color := C1;
Font.Color := C2 ;
end;
end; end;