datawindow2.0新推出了一个功能能够处理页面的导航,可以方便的实现各种类型的导航栏.
datawindow.net的导航栏,默认是关闭的,如果需要打开非常简单,在数据窗口控件上点击右键,查看属性,找到
PageNavigationBarSettings,展开后可以看到属性
其中,他提供四种类型的导航栏,分别是:
NextPrev - Previous, next, first, and last page images or text.
Numeric - Numbered and first and last page links.
QuickGo - A page number input edit box or page number selection drop-down list.
NextPrevWithQuickGo - Combined type.
NumericWithQuickGo - Combined type.
The default is NextPrev.
属性的选择可以使用代码来完成,具体代码可以参考datawindow.net的文档
see "Page navigation bars" in the Programmer's Guide
粘几行代码:
wdw_TeamUser.PageNavigationBarSettings.Position = Sybase.DataWindow.Web.NavigationBarPosition.Bottom;
wdw_TeamUser.PageNavigationBarSettings.PageStatusInfo.Visible = true;
wdw_TeamUser.PageNavigationBarSettings.PageStatusInfo.Position = Sybase.DataWindow.Web.PageStatusInfoPosition.Right;
样例: