DevExpress.XtraEditors.DataNavigator用法
来源:互联网 发布:汕头网店美工培训sina 编辑:程序博客网 时间:2024/05/16 00:45
作者:jiankunking 出处:http://blog.csdn.net/jiankunking
1、DevExpress.XtraEditors.DataNavigator刚拖到winform窗体上的样子:
设置DataNavigator控件属性Dock=Bottom;TextLocation=End;TextStringFormat=第 {0}页 ,共 {1}页;
在运行时会有下面效果:
然后在Buttons选项卡下将ImageList设置为刚才选择过图片的imageList1控件,然后在DataNavigator控件 buttons下选择荼盘即可,比如下图的First
按钮事件处理:
private void dataNavigator1_ButtonClick(object sender, DevExpress.XtraEditors.NavigatorButtonClickEventArgs e) { //下一页 if ((e.Button).ButtonType == DevExpress.XtraEditors.NavigatorButtonType.NextPage) { } //上一页 if ((e.Button).ButtonType == DevExpress.XtraEditors.NavigatorButtonType.PrevPage) { } //首页 if ((e.Button).ButtonType == DevExpress.XtraEditors.NavigatorButtonType.First) { } //尾页 if ((e.Button).ButtonType == DevExpress.XtraEditors.NavigatorButtonType.Last) { } }
DataNavigator Class
The control that enables navigation through records in a data source and provides common record operations.
Namespace:DevExpress.XtraEditorsAssembly:DevExpress.XtraEditors.v14.2.dll
Syntax
public class DataNavigator : NavigatorBase, IDataNavigatorOwner
Remarks
The DataNavigator control is used to navigate through records in a data source and perform operations against the data. It is derived from theNavigatorBase class, and so it inherits properties and methods common to all data navigation controls.
The data navigator displays built-in buttons that enable a user to scroll forward or backward through records one at a time, go to the first record, go to the last record, insert a new record, post data changes, cancel data changes and delete a record. You can also add custom buttons, when required. To access built-in and custom buttons, use the Buttons property. To perform custom actions on button clicks, handle the NavigatorBase.ButtonClick event.
The DataNavigator control needs to be associated with a data source in order to receive and manipulate data. Use the DataSource and DataMemberproperties for binding.
The DataNavigator can display a text string that specifies the current record and the total record count in the associated data source. Use theNavigatorBase.TextLocation and NavigatorBase.TextStringFormat to customize the display of this text.- DevExpress.XtraEditors.DataNavigator用法
- DevExpress.XtraEditors.LookUpEdit基本用法
- DevExpress.XtraEditors.VScrollBar 使用方法
- DevExpress.XtraEditors.CheckedListBoxControl 控件使用
- DataNavigator
- DevExpress.XtraEditors.v7.3 无限制版
- 如何给DevExpress.XtraEditors.TextEdit赋默认值
- DevExpress.XtraEditors.ComboBoxEdit 只能选择不能在里面 输入数据
- 遍历winform窗体上的所有控件(包括DevExpress.XtraEditors控件)且对其做相应的处理
- 本地化XtraEditors
- DevExpress ASPxGridView基本用法
- DevExpress ASPxGridView基本用法
- Devexpress DropDownButton 用法
- DevExpress ASPxGridView基本用法
- DevExpress TreeList用法总结
- Devexpress DropDownButton 用法
- DevExpress 中的Html.DevExpress().ComboBox 用法
- 转 devexpress 的一些用法
- POJ 2312 Battle City (BFS状态搜索)
- 【ZooKeeper Notes 25】ZooKeeper运维之使用SnapshotFormatter可视化快照数据
- 大二上,java基础结束了
- PostgreSQL 9.4文档 第7章 查询
- hdu4296 Buildings 贪心
- DevExpress.XtraEditors.DataNavigator用法
- N-Queens
- 【ZooKeeper Notes 24】Leader选举杂记1
- Metro UI CSS 学习笔记之组件(进度条、按钮组和评分)
- mtk 7620 编译 没定义 rint函数问题
- 【ZooKeeper Notes 23】Leader选举-来自邮件列表
- k近邻法:R实现(二)
- 代码对齐
- java判断整数、小数和小数点开头很简单的方法