1、devexpress.xtraeditors.datanavigator刚拖到winform窗体上的样子:
设置datanavigator控件属性dock=bottom;textlocation=end;textstringformat=第 {0}页 ,共 {1}页;
如果想显示tooltip,需把showtooltips设置为true.设置button的hint为自己想要显示的内容即可。
比如:
在运行时会有下面效果:
上图中的首页、前一页、后一页、尾页的图片是自定义的,那么怎么使用自定义图片呢?
拖拽一个imagelist控件,然后在imagelist中选择要使用的自定义图片
然后在buttons选项卡下将imagelist设置为刚才选择过图片的imagelist1控件,然后在datanavigator控件
buttons下选择荼盘即可,比如下图的first
按钮事件处理:
dev官方文档:
the control that enables navigation through records in a data source and provides common record operations.
assembly:devexpress.xtraeditors.v14.2.dll
c#
vb
the datanavigator control is used to navigate through
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,
the datanavigator control needs to be associated
for binding.
the datanavigator can display a text string that specifies the current record and the total record count in the associated
customize the display of this text.