cxGrid讨论专题,请不懂者在此提问,高手者帮忙解答。(Thanks) (200分)

H

Herb

Unregistered / Unconfirmed
GUEST, unregistred user!
ExpressQuantumGrid 从V3到V4,进行了质的改变,从dxDBGrid改为cxGrid
让人一时难以适应。
1问题:当设置cxGrid的GridMode=True的时候是否还要进行其他的设置?默认情况下只
改变这个属性,编译出错。
2倒入excel的时候,日期格式的字段需要做哪些设置才能够正常倒入,默认情况下不能倒入
 
哪里有下?
 
??????????????
 
To小刚:我知道你对这方面了解比较多,如果你不愿意回答没有关系,但如果说骗人是否可以考虑说话的方式??
要骗人我有必要吗?直接问,出200分不是更好?
我只是希望有更多人能在这里问,更多的人能在这里找到自己的答案!
我的另一个问题,我感谢你的答案,但是那个问题我只出了很少的分,骗人有必要出这么多分吗?我才这么一点分,还想多问几个问题呢!
 
Herb:
以上贴的地址基本上都失效,不必再贴了!

1、其实,ExpressQuantumGrid 从 v3 到 v4 ,咋一看是变化挺大,但如果有 v3 的基础,是很容易上手的,只需摸清新版本的架构即可,我的转换期也只是几天的时间即已适应。相信其他有 v3 基础的,也是如此。

2、v4 的数据装入方法有两个,一个是装入所有数据的缺省模式(即 v3 的 LoadAllRecords mode),另一个则是部分装入数据的 GridMode (即 v3 的 Partial loadmode),每次装入的数据由 GridModeBufferCount 决定,如使用缺省的 0 ,那么将自动根据窗口屏幕计算需装入的记录数。否则将按指的数量装入。

3、另外,ExpressBars 5 已推出 Beta 版本,ExpressQuantumTreeList 4 也将在近日发布 Beta 版本。
 
个人感觉,V4=V3+TdxMaterView,
目前,我数据库界面均使用Dev Express的产品,非常不错(我只好把InfoPower
放弃了),只可惜它的打印控件只支持它自身的产品,不够灵活,所以,打印我
使用ReportBuilder。
 
我打印也是保留ReportBuilder,解面控件查询方面的用dxDBGrid,输入方面我还是继续保留InfoPower的(以前就是使用他,不想换了)
谢谢bkfx的回答,希望其他的初用cxGrid的踊跃在此提问,也希望高手们能够积极回答
 
但我感觉如果在写代码时使用CXGRID的列头的排序功能,在编译运行程序后且取大量数据的情况下,CXGRID速度很慢,可能是他在取完数据又要进行排序的缘故吧。
不知其他DFW怎么看。
 
如果写一个类似EXCEL的控件,可用于打印报表,受不受欢迎?
 
不能下载
 
cxGrid倒入excel日期格式应该如何处理?
 
cxGrid到现在也不会使
 
不知道使用Rave Report制作报表好不好呢?
 
导出至Excel日期格式的问题,我这里没有遇到。能够正常导出。

我倒是有个问题想借此机会请教高手!

关于Tcxgrid detail views的显示。

我用cxgrid做多级表关联显示,即一条记录下面“+”折叠对应其明细。但糟糕的是,如果该条记录无法找到其对应的明细时,当打开其“+”节点,会有一大片空白的区域。我觉得这样的界面很尴尬很难看。能否像TreeView一样,有下级就显示“+”,无下级就不用显示“+”了;或者控制这片空白区域的大小,等等方法来解决这个问题。
 
cxgrid 怎么没见到直接导入到excel的功能,dxgrid有.
有了cxspreadsheet和sheetbook了,比较好
 
ugvanxk:

cxGrid也提供了导出Excel的功能。但不是很理想,只能导出主表信息。

ExportGrid4ToExcel();//详见帮助
 
找到了,谢谢!
Unit

cxExportGrid4Link


Declaration
procedure ExportGrid4ToExcel(const AFileName: string; AGrid: TcxGrid; AExpand: Boolean = True; ASaveAll: Boolean = True; AUseNativeFormat: Boolean = False);

Description

The ExportGrid4ToExcel method exports records from the AGrid control in MS Excel format. Note: ExportGrid4ToExcel is restricted to grids with a single level, i.e. it does not support exporting detail views. Detail views are ignored.
The AFileName parameter defines the name and the path of the output XLS file. Any extension specified in this parameter is replaced with ‘.xls’.
The AExpand parameter indicates whether to export all records displayed in the grid including those hidden within collapsed groups. If this parameter value is False, only visible records are written to the file.

The ASaveAll parameter indicates whether to export selected or all records.
If the AUseNativeFormat parameter is True, the export routine tries to convert display text of grid cells to the corresponding Excel format (Currency, Date, Time or Float). If you specify an editor to an item, the display text of all cells in the item is converted to a proper MS Excel format according to the following table:

An editor assigned to a grid cell The corresponding MS Excel format
TcxCurrencyEdit Currency
TcxDateEdit Date
TcxTimeEdit Time
TcxCalcEdit or TcxSpinEdit Float
If the text of a specific cell cannot be converted to a required format (if the cell contains invalid characters), it is exported as a string.

If an item is assigned an editor of a type not listed in the table above, the export routine still tries to convert individual cells in turn to the Currency, Date, Time and Float formats using the system’s regional settings. If the conversion to all of these formats fails, the cell’s text is exported as a string.

Refer to the Items section for more information on assigning editors to items in EQGrid4.

If AUseNativeFormat is set to False, display text of all cells is exported as strings without conversion.

The following image shows data exported to MS Excel format:
 
请指点:关于以cx开头的一些控件如cxControls, cxContainer, cxEdit,
cxTextEdit, cxMaskEdit, cxDropDownEdit, cxCalendar, cxDBEdit等,在哪里可以下载到,并请告知安装方法,十分感谢
 
www.51delphi.com
DecExpress QuantumGrid 4.5
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
920
DelphiTeacher的专栏
D
I
回复
0
查看
525
import
I
顶部