从blog.org的我的原博客中迁入
发表时间:2007-4-28 17:35:14
发表时间:2007-4-28 17:35:14
DevExpress.XtraGrid的统计功能
设置ShowFooter = True
选中某一列(ID),SummaryItem属性,->设置SummaryType为:count(记录个数)、sum(总和)、Max(该列最大值)......,->再设置DisPlayFormat格式为:static text{0:format specifier} static text其中format specifier可以分别设置为E1、n0、c2、x8,其中代表格式如下:
c2 : $1,234,00
n0 : 1,234
E1 : 1.2E + 003
选中某一列(ID),SummaryItem属性,->设置SummaryType为:count(记录个数)、sum(总和)、Max(该列最大值)......,->再设置DisPlayFormat格式为:static text{0:format specifier} static text其中format specifier可以分别设置为E1、n0、c2、x8,其中代表格式如下:
c2 : $1,234,00
n0 : 1,234
E1 : 1.2E + 003
DevExpress.XtraGrid的其它一些属性设置
Category:
VB.NET
DevExpress.XtraGrid.Views.Grid.GridView
Options
---optionsCustomization.AllowFilter 是否全部过滤
|
-optionsSelection-MuSelect 多条记录选择
| |
| -EnableAppearanceFocusedCell False选中一条记录
--optionsView
| ---showFooter 显示统计页脚
| |-showIndicator 显示最前面一列的指示器
| --showGroupPanel 是否显示头注释(Groupbyboxs)
| |-RowAutoHeight 自动高度
|-ColumnAutowidth False设定网格自定义宽度
|-optionsBehavior.Editable False 只读
|-Contextmenustrip 选择右键弹出的菜单
FouceRectstyle = RowFocus
X8 : 000004D2
如:记录总数:{0:c2}条