新建一个cxStyleRepository,分别建立几种Styles,如cxgrid_odd,cxgrid_even,cxgrid_selection等,并设置好它们的背景色、字体属性等。 在cxGridDBTableView中,有一个Styles属性, 里面有Content,ContentEven ...
分类:
其他好文 时间:
2017-03-23 23:58:49
阅读次数:
366
cxgrid的FINDPANEL编程 FindPanel := TcxGridFindPanel.Create(cxGrid1DBTableView1.Controller); self.cxGrid1DBTableView1.Controller.ApplyFindFilterText(cxCom ...
分类:
其他好文 时间:
2017-03-08 10:49:44
阅读次数:
165
cxgrid动态创建列 procedure TFrmRuleEdit.CreateCols;var Column: TcxGridDBColumn;begin cdsPowerPrj.First; while not cdsPowerPrj.Eof do begin Column := viewPo ...
分类:
其他好文 时间:
2017-02-28 17:39:21
阅读次数:
200
// 下面这个主要是对查询出来的数据, 经过筛选后得到的数据中进行反选操作 ,然后对选择的数据进行修改(全选或选择一部分也可以根据些代码修改) Screen.Cursor := crHourGlass; cxGrid2DBTableView1.DataController.GotoFirst; fo... ...
分类:
其他好文 时间:
2016-12-29 16:21:51
阅读次数:
232
原文:http://www.cnblogs.com/hnxxcxg/archive/2010/05/24/2940711.html 动态设置和访问cxgrid列的Properties 设置: cxGrid1DBTableView1Column.PropertiesClass = TcxTextEdi ...
分类:
其他好文 时间:
2016-12-23 22:14:02
阅读次数:
204
lookandfeelnativestyle为falsekind=office11
分类:
其他好文 时间:
2016-10-20 01:18:48
阅读次数:
97
一个表(T)的结构结构如下. ID Test 1 20012 14443 17885 26456 4568 cxGrid成功连接到该表, 如果要实现单元格特效, 就要在cxGridDBTableView的 OnCustomDrawCell写代码. 该事件声明原形为 type TcxGridTable ...
分类:
其他好文 时间:
2016-10-17 13:55:35
阅读次数:
297
http://www.oschina.net/code/snippet_54100_1102 Developer Express的cxGrid控件是一个相当有特色的数据栅格组件,支持自动分组、卡片式显示、和像Excel那样的过滤功能等。不过它在多选区时的显示 方式却不太友善,对于我这样还有点追求的人 ...
分类:
其他好文 时间:
2016-10-17 13:14:22
阅读次数:
168
CxGrid导出Excel时清除颜色的设置 (2011-04-25 16:33:23) 转载▼ CxGrid导出Excel时清除颜色的设置 转载▼ 标签: it 分类: Delphi it http://www.radxe.com/?p=170 cxgrid导出到Excel是“所见即所得”模式的,应 ...
分类:
其他好文 时间:
2016-10-15 07:39:29
阅读次数:
192
uses cxLookAndFeelPainters; type TMyCxGrid = class(TObject) class procedure DrawIndicatorCell( Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo ...
分类:
其他好文 时间:
2016-10-15 02:45:34
阅读次数:
181