随笔分类 -  cxGrid

摘要:原文地址:https://www1.devexpress.com/Support/Center/Question/Details/CQ30369 Actually, the corresponding editor is passed to this event handler via the Se 阅读全文
posted @ 2019-06-05 23:17 覆雨翻云 阅读(468) 评论(0) 推荐(0)
摘要:cxGrid导出到Excel,对于Currency类型总是加上了货币符号,可以修改导出文件设置来去掉: 在cxXLSExport.pas文件中,修改: 阅读全文
posted @ 2019-03-05 15:54 覆雨翻云 阅读(267) 评论(0) 推荐(0)
摘要:https://bbs.csdn.net/topics/391828565 阅读全文
posted @ 2019-01-01 22:36 覆雨翻云 阅读(624) 评论(0) 推荐(0)
摘要:设置OptionsData选项中的Editing设为True,按着Shift和Ctrl可实现多选 SelectionChanged事件 For i:= 0 To cxGrid1DBTableView1.Controller.SelectedRowCount -1 DO Begin SL.Append 阅读全文
posted @ 2018-12-17 09:39 覆雨翻云 阅读(664) 评论(0) 推荐(0)
摘要:https://www.devexpress.com/Support/Center/Question/Details/A385/how-to-iterate-through-all-gridview-records-in-their-display-order-irrespective-of-gro 阅读全文
posted @ 2018-11-03 19:30 覆雨翻云 阅读(353) 评论(0) 推荐(0)
摘要:网上有代码动态生成cxgrid多行表头的源码,地址为:http://mycreature.blog.163.com/blog/static/556317200772524226400/ 如果要手动设计多行表头的话,有下面三步搞定: 1、新建一个工程。将CXGRID控件放在上面,Customize创建 阅读全文
posted @ 2018-10-26 21:27 覆雨翻云 阅读(993) 评论(0) 推荐(0)
摘要:1、对TcxGrid创建多个Level 2、对TcxGrid的TcxGridLevelOptions的TabsForEmptyDetail设置为True 3、再设置DetailTabsPosition的方向为:dtpTop或则dtpLeft 4、cxGrid的rootleveloptions属性下的 阅读全文
posted @ 2018-08-28 09:24 覆雨翻云 阅读(210) 评论(0) 推荐(0)
摘要:cxVerticalGrid can't get values How to work with an in-place CheckComboBox in VerticalGrid Copy text from VerticalGrid row to TcxRichEdit TcxVerticalG 阅读全文
posted @ 2018-08-13 21:21 覆雨翻云 阅读(434) 评论(0) 推荐(0)
摘要:1 在TcxGridDBTableView中,设定属性 NewItemRow.Visible = True 2 在cxgrid中输入数据怎样回车换行 在TcxGridDBTableView中 将属性OptionsBehavior.FocusFirstCellOnNewRecord = True // 阅读全文
posted @ 2018-04-14 11:52 覆雨翻云 阅读(706) 评论(0) 推荐(0)
摘要:1、自动行高:CellAutoHeight(单元自动高度)设置为True. procedure TForm_Sales.col_Reg_Price_UnitPropertiesEditValueChanged( Sender: TObject);var Edit : TcxCustomEdit; c 阅读全文
posted @ 2017-12-10 21:23 覆雨翻云 阅读(455) 评论(0) 推荐(0)
摘要:定位在第一行并显示内置编辑器 cxDBVerticalGrid1.FocusedRow := cxDBVerticalGrid1.Rows[0]; cxDBVerticalGrid1.ShowEdit; procedure TFrm_luru.Read_fllawmd;var I: Integer; 阅读全文
posted @ 2017-11-25 12:32 覆雨翻云 阅读(515) 评论(0) 推荐(0)
摘要:cxGridDBTableView1.DataController.Summary.FooterSummaryValues[4]; 阅读全文
posted @ 2017-10-31 14:34 覆雨翻云 阅读(212) 评论(0) 推荐(0)
摘要:注意,不是根据index取得footer值cxgrdtbv1.DataController.Summary.FooterSummaryValues[0]; 解决方案 var f: TcxGridDBTableSummaryItem; cx_for_mctv.OptionsView.Footer := 阅读全文
posted @ 2017-09-02 11:40 覆雨翻云 阅读(414) 评论(0) 推荐(0)
摘要:Delphi Cxgrid获取选中行列,排序规则,当前正在编辑的单元格内的值 cxGrid1DBTableView1.Controller.FocusedRowIndex 当前行号 cxGrid1DBTableView1.Controller.FocusedRow 当前行cxGrid1DBTable 阅读全文
posted @ 2017-08-30 16:46 覆雨翻云 阅读(431) 评论(0) 推荐(0)
摘要:如果View的类型是cxGridDBTableView:1.cxGrid.DisableControls;cxGrid.EnableControls;如仍觉得慢,可以把 cxGrid1DBTableView --> DataController --> DataModeController 的 Gr 阅读全文
posted @ 2017-08-24 14:31 覆雨翻云 阅读(619) 评论(0) 推荐(0)
摘要:一、导出EXCEL TXT HTML: uses cxTLExportLink; cxExportTLToEXCEL(dm.SaveDialog.FileName,cxDBTreeList1,TRUE,TRUE); //轉入EXCELcxExportTLToTEXT(dm.SaveDialog.Fi 阅读全文
posted @ 2017-07-07 23:45 覆雨翻云 阅读(4868) 评论(0) 推荐(0)
摘要:Delphi Cxgrid获取选中行列,排序规则,当前正在编辑的单元格内的值 cxGrid1DBTableView1.Controller.FocusedRowIndex 当前行号 cxGrid1DBTableView1.Controller.FocusedRow 当前行cxGrid1DBTable 阅读全文
posted @ 2017-07-03 09:29 覆雨翻云 阅读(2867) 评论(0) 推荐(0)
摘要:1、对TcxGrid创建多个Level 2、对TcxGrid的TcxGridLevelOptions的TabsForEmptyDetail设置为True 3、再设置DetailTabsPosition的方向为:dtpTop或则dtpLeft 转:http://blog.csdn.net/zengco 阅读全文
posted @ 2017-03-30 19:47 覆雨翻云 阅读(237) 评论(0) 推荐(0)
摘要:1. 去掉cxGrid中台头的Box 解决:在tableview1的ptionsview的groupbybox=false; ***************************************************************************** 2.统计功能 解决 阅读全文
posted @ 2017-03-30 19:45 覆雨翻云 阅读(930) 评论(0) 推荐(0)
摘要:To scroll  the Grid programmatically, you should set the following Table Controller's properties:   1) LeftPos   2) TopRowIndex; Please note, the first property defines the position of the horizonta... 阅读全文
posted @ 2011-01-16 15:35 覆雨翻云 阅读(475) 评论(0) 推荐(0)