如提
解决方案 »
- 再发一贴,关于 cxDBgrid 提交数据修改慢的问题
- C代码转换成delphi的问题,用到了直接读写内存地址
- 如何查找一个组件在程序中哪些地方用到?
- 请教一个关于ImageList控件的非常奇怪的问题
- ◎◎◎关于DBGrid的显示问题◎◎◎
- 数据库用SQL server 2000,如何取得刚插入的记录的IDENTITY值?
- 請教報表的問題
- 分數不是問題(若有人寫得好用的,或者修正好確實正確無誤的,本人加分);報表自定義表達式,驗證表達式的正確性,請各位help me提意見,並且可
- 2.RICHEDIT一个奇怪的问题,我在它里面用五笔打字,可除每行第一个字外全是乱码,有时复制一下再贴回来就好了。但直接打时肯定不行,在任何时间,帮帮忙啊.30分来者有,信用至上。
- 如何使下来菜单显示于coolbar上
- 关于用PrintDBGridEh1打印
- delphi 对access的sql语言的日期操作?
begin
StringGrid1.Cells[0,StringGrid1.RowCount-1]='你好';
StringGrid1.RowCount := StringGrid1.RowCount+2;
End;
这样子不需要判断,速度又快!
with TStringGrid(Sender) do begin
if ((State = [gdSelected]) or (State = [gdSelected, gdFocused])) then begin
Canvas.Font.Color := clHighlightText;
Canvas.Brush.Color := clHighlight;
end else
with Canvas do
if (ARow mod 2) <> 0 then
begin
Brush.Color:=clInfoBk;
Font.Color:=clblack;
TextRect(Rect, Rect.Left, Rect.Top, Cells[ACol, ARow]);
end else Canvas.brush.Color := clWhite;
end;