1. 去掉cxgrid中抬头的box ,在tableview1的ptionsview的groupbybox=false; 2. 在GRID footer 中加入sum(列), tableview1的optionsview的footer=ture 然后在cxGRid1的customize中的summary 的footer.add需要合计的列kind= skSum 3. 去掉cxgrid 中的过滤下拉箭头选择tableview1.optionscustomize.columnfiltering=fasle; 4. cxGrid1DBTableView1 的 OptionView中屬性GroupFooters設為gfAlwaysVisible並設置需要求和的列,在summary.default for Groups 下add加入需要合计的字段,column下显示fieldname 为统计字段,format为格式,kind为统计方法,position 为位子 spfooter 在分组的下面,spgroup 在分组的上面 或用cxGridPopupMenu1,在運行時可對任意數字類型列求和,方法是只需設置cxGridPopupMenu1的屬性Grid為cxGrid1DBTableView1的cxGrid, 即可實現您所需功能 5. DEV Express里的cxGrid默认的数值格式带¥,怎么去掉啊! 雙擊Cxgrid,選擇colmnum改變類型 options.properties.Memo,在displayformat中进行设置 6. 在网格最后一行的最后一格回车自动增加一条记录,并跳到新记录的第一格 设置cxGrid1DBTableView1的OptionsBehavior的FocusFirsCellOnNewRecord与GoToNextCellOnEnter为True,FocusCellOnCycle设为True 7. 网格中通过Tab跳转,设置cxGrid1DBTableView1的OptionsBehavior的FocusCellOnTab为True 8. 设置是否能够在网格中编辑数据,设置cxGrid1DBTableView1的OptionsData的Appending设为True,Deleting为True,Editing为True 9. 设置是否能选中网格,设置cxGrid1DBTableView1的OptionsSelection的CellSelect为True 10. 设置是否能够反选,设置cxGrid1DBTableView1的OptionsSelection的InsertSelect为True 11. 设置行高:在cxGridDBTableView1.OptionsView.DataRowHeight 12. 改变字体在 cxStyleRepository 双击它,在里面添加GridTableViewStyleSheetDevExpress 然后改变Style标签里面的cxStyle的字体就可以控制cxGrid的字体了 13. 有图片和MEMO的例子: 拖入一个cxGrid1,Table1,DataSource1。 Table1的DatabaseName设为DBDEMOS,TableName设为biolife.db, Active设为True;DataSource1的DataSet设为Table1;cxGrid1DBTableView1的DataController中的DataSource 设为DataSource1;右击cxGrid1DBTableView1选择Create All Columns;双击cxGrid1,在弹出的窗口中找到 cxGrid1DBTableView1Notes和cxGrid1DBTableView1Graphic,将它们的Properties属性设为BlobEdit;运行看看结果。再将cxGrid1DBTableView1Graphic的Properties属性设为Image,再将Properties下的Stretch设为True,将cxGrid1DBTableView1->optionsview->CellAutoHeight 设为True,看看结果。 14. 如何让“Drag a column here to group by that column”不显示 解决:点击cxGrid1上的cxGrid1DBTableView1 在cxGrid1DBTableView1->optionsview->groupbybox:=false即可 15. GroupPanel上面的英文[Drag a column header to group by that column]怎么可以改成中文? 解决:最简单的方法是 TcxGridTableView.OnCustomDrawPartBackground ,也可用 OnCustomDrawGroupCell: procedure TForm1.cxGrid1DBTableView1CustomDrawPartBackground( Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxCustomGridCellViewInfo; var ADone: Boolean); begin AViewInfo.Text:='动态设置 GroupBox 的显示内容'; ACanvas.FillRect(AViewInfo.Bounds); end; 16. 如何实现如下功能: 财务部 原材料仓库 成品库 冲压车间 软件开发部 这个是部门的名称,点击加号就可以将本部门的人员情况显示出来。 解决:其实这是一个主从表关系, (1):填好主表的keyfieldnames |