文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Sort a WebCombo Column Programly

Sort a WebCombo Column Programly

时间:2010-08-27  来源:yuzhangqi

Infragistics WebCombo control make it very easy to sort a cloumn with few lines of code. There is no need that the source data is ordered.

Let see an example.

As shown in above figure, the service WebCombo is not sorting and the rows are unordered.

To sort a WebCombo column, we need to set the SortIndicator property of a Column object of the WebCombo control.

Public Shared Sub BindWebCombo(ByRef control As WebCombo, ByRef dataSource As IBindingList)
With control
' data bingding
.DataSource = dataSource
.DataBind()
' set sorting column and order
.Columns.Band.Columns(0).SortIndicator = SortIndicator.Ascending
.Columns.Band.SortedColumns.Add(.Columns(0), True)
'set layout and style
control.DropDownLayout.DropdownWidth = control.Width
control.Editable = True
End With
End Sub

Now Let's take a look at the result.


相关阅读 更多 +
排行榜 更多 +
盒子小镇2游戏手机版下载

盒子小镇2游戏手机版下载

冒险解谜 下载
世界盒子模组版下载最新版本

世界盒子模组版下载最新版本

模拟经营 下载
音乐搜索app最新版本下载

音乐搜索app最新版本下载

趣味娱乐 下载