扩展GridView控件正式版
详细介绍
http://www.cnblogs.com/webabcd/archive/2007/02/04/639830.html
控件使用
1、鼠标经过行的时候改变该行的样式,鼠标离开行的时候恢复该行的样式
使用方法(设置属性):
MouseOverCssClass - 鼠标经过行时行的 CSS 类名
2、对多个字段进行复合排序;升序、降序的排序状态提示
使用方法(设置SmartSorting复合属性):
AllowSortTip - 是否启用排序提示
AllowMultiSorting - 是否启用复合排序
SortAscImageUrl - 升序提示图片的URL(不设置则使用默认图片)
SortDescImageUrl - 降序提示图片的URL(不设置则使用默认图片)
SortAscText - 升序提示文本
SortDescText - 降序提示文本
3、根据按钮的CommandName设置其客户端属性
使用方法(设置ClientButtons集合属性):
BoundCommandName - 需要绑定的CommandName
AttributeKey - 属性的名称
AttributeValue - 属性的值(两个占位符:{0} - CommandArgument;{1} - Text)
Position - 属性的值的位置
4、联动复选框(复选框的全选和取消全选)。选中指定的父复选框,则设置指定的所有子复选框为选中状态;取消选中指定的父复选框,则设置指定的所有子复选框为取消选中状态。如果指定的所有子复选框为均选中状态,则设置指定的父复选框为选中状态;如果指定的所有子复选框至少有一个为取消选中状态,则设置指定的父复选框为取消选中状态
使用方法(设置CascadeCheckboxes集合属性):
ParentCheckboxID - 模板列中 父复选框ID
ChildCheckboxID - 模板列中 子复选框ID
YYControls.Helper.SmartGridView中的静态方法
List GetCheckedDataKey(GridView gv, int columnIndex)
List GetCheckedDataKey(GridView gv, string checkboxId)
5、固定指定行、指定列,根据RowType固定行,根据RowState固定行
使用方法(设置FixRowColumn复合属性):
FixRowType - 需要固定的行的RowType(用逗号“,”分隔)
FixRowState - 需要固定的行的RowState(用逗号“,”分隔)
FixRows - 需要固定的行的索引(用逗号“,”分隔)
FixColumns - 需要固定的列的索引(用逗号“,”分隔)
TableWidth - 表格的宽度
TableHeight - 表格的高度
6、响应行的单击事件和双击事件,并在服务端处理
使用方法(设置属性):
BoundRowClickCommandName - 行的单击事件需要绑定的CommandName
BoundRowDoubleClickCommandName - 行的双击事件需要绑定的CommandName
7、行的指定复选框选中的时候改变该行的样式,行的指定复选框取消选中的时候恢复该行的样式
使用方法(设置CheckedRowCssClass复合属性):
CheckBoxID - 模板列中 数据行的复选框ID
CssClass - 选中的行的 CSS 类名
8、导出数据源的数据为Excel、Word或Text(应保证数据源的类型为DataTable或DataSet)
使用方法:
为SmartGridView添加的方法
Export(string fileName)
Export(string fileName, ExportFormat exportFormat)
Export(string fileName, ExportFormat exportFormat, Encoding encoding)
Export(string fileName, int[] columnIndexList, ExportFormat exportFormat, Encoding encoding)
Export(string fileName, int[] columnIndexList, string[] headers, ExportFormat exportFormat, Encoding encoding)
Export(string fileName, string[] columnNameList, ExportFormat exportFormat, Encoding encoding)
Export(string fileName, string[] columnNameList, string[] headers, ExportFormat exportFormat, Encoding encoding)
9、给数据行增加右键菜单,响应服务端事件或超级链接
使用方法(设置ContextMenus集合属性):
Text - 菜单的文本内容
BoundCommandName - 需要绑定的CommandName
NavigateUrl - 链接的URL
Target - 链接的目标窗口或框架
SmartGridView的属性ContextMenuCssClass - 右键菜单的级联样式表 CSS 类名(右键菜单的结构div ul li a)
10、自定义分页样式。显示总记录数、每页记录数、当前页数、总页数、首页、上一页、下一页、末页和分页按钮
使用方法(设置CustomPagerSettings复合属性):
PagingMode - 自定义分页的显示模式
TextFormat - 自定义分页的文本显示样式(四个占位符:{0}-每页显示记录数;{1}-总记录数;{2}-当前页数;{3}-总页数)
11、合并指定列的相邻且内容相同的单元格
使用方法(设置属性):
MergeCells - 需要合并单元格的列的索引(用逗号“,”分隔)
OK
没有合适的资源?快使用搜索试试~ 我知道了~
YYControlYYControlYYControl
共148个文件
cs:82个
bmp:12个
txt:10个
5星 · 超过95%的资源 需积分: 9 3 下载量 81 浏览量
2008-11-02
16:38:32
上传
评论
收藏 368KB RAR 举报
温馨提示
YYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControlYYControl
资源详情
资源评论
资源推荐
收起资源包目录
YYControlYYControlYYControl (148个子文件)
SmartGridView.aspx 7KB
SmartGridViewAlpha.aspx 7KB
SmartLabel.aspx 1KB
SmartTreeView.aspx 894B
SmartListBox.aspx 537B
SmartDropDownList.aspx 523B
Default.aspx 257B
YYControls.SmartGridViewAlpha.icon.bmp 824B
YYControls.Resources.SmartGridView.bmp 824B
YYControls.Resources.SmartDropDownList.bmp 824B
SmartListBox.bmp 824B
SmartTreeView.bmp 824B
SmartGridView.bmp 824B
SmartDropDownList.bmp 824B
SmartLabel.bmp 824B
YYControls.Resources.SmartLabel.bmp 824B
YYControls.Resources.SmartTreeView.bmp 824B
YYControls.Resources.SmartListBox.bmp 824B
icon.bmp 824B
Web.config 2KB
SmartGridViewAlpha.cs 52KB
JavaScriptConstant.cs 18KB
Export.cs 13KB
SmartSortingFunction.cs 10KB
SmartGridView.cs 8KB
CustomPagerSettingsFunction.cs 7KB
ContextMenuFunction.cs 6KB
SmartGridView.cs 5KB
Export.cs 5KB
Event.cs 5KB
FixRowColumnFunction.cs 5KB
AssemblyInfo.cs 5KB
OptionGroup.cs 4KB
OptionGroup.cs 4KB
FixRowCol.cs 3KB
ContextMenu.cs 3KB
SmartSorting.cs 3KB
FixRowColumn.cs 3KB
EnablePostback.cs 3KB
ClientButtonFunction.cs 3KB
RowClickFunction.cs 3KB
SmartTreeView.cs 3KB
RowDoubleClickFunction.cs 3KB
SmartTreeView.aspx.cs 2KB
SortTip.cs 2KB
CascadeCheckboxFunction.cs 2KB
CheckedRowCssClassFunction.cs 2KB
Handler.cs 2KB
Attribute.cs 2KB
OjbData.cs 2KB
CheckboxAlls.cs 2KB
ContextMenus.cs 2KB
ConfirmButtonConverter.cs 2KB
CascadeCheckboxes.cs 2KB
ClientButtons.cs 2KB
ContextMenus.cs 2KB
MergeCellsFunction.cs 2KB
ConfirmButtons.cs 2KB
CascadeCheckboxFunction.cs 2KB
SmartGridViewAlpha.aspx.cs 2KB
MouseOverCssClassFunction.cs 2KB
GridViewTableCell.cs 2KB
SmartListBox.aspx.cs 2KB
ChangeRowCSSByCheckBox.cs 2KB
Property.cs 2KB
CustomPagerSettings.cs 2KB
ClientButton.cs 2KB
SmartDropDownList.aspx.cs 1KB
ExtendFunction.cs 1KB
ExtendFunction.cs 1KB
Property.cs 1KB
CheckedRowCssClass.cs 1KB
ContextMenu.cs 1KB
SmartGridView.aspx.cs 1KB
Property.cs 1KB
SmartDropDownList.cs 1KB
Enum.cs 1KB
Property.cs 1KB
SmartListBox.cs 1KB
Property.cs 1KB
SmartLabel.cs 1KB
Property.cs 1017B
Property.cs 1010B
DataSet.cs 993B
Property.cs 982B
ConfirmButton.cs 942B
Property.cs 926B
Property.cs 906B
Control.cs 884B
CheckboxAll.cs 878B
CascadeCheckbox.cs 878B
String.cs 875B
Property.cs 806B
Property.cs 783B
SmartLabel.aspx.cs 772B
Property.cs 772B
Property.cs 745B
Property.cs 715B
Paging.cs 650B
Default.aspx.cs 417B
共 148 条
- 1
- 2
Milk-
- 粉丝: 16
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 农村信用社联合社计算机信息系统投产与变更管理办.docx
- 农村信用社联合社计算机信息系统数据管理办法.docx
- 利用SPSS作临床效度分析线上计算网站介绍-医学研究部统计谘.(医学PPT课件).ppt
- 利用Zabbix监控mysqldump定时备份数据库状态.docx
- 利用计算机解决问题的基本过程.doc
- 化工铁路通信工程总结.doc
- 北京大学网络教育软件工程作业.docx
- 医药公司(连锁店)计算机操作规程未新系统的自行按照旧制修改-新系统过制的编号加修模版.doc
- 医药公司(连锁店)计算机系统操作规程模版.doc
- 医药连锁门店计算机系统的操作和管理程序未新系统的自行按照旧制修改-新系统过制的编号加修模版.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1