如何将数据绑定到 DevExpress TreeList
我想将分层数据从纯数据数据绑定到 ASPxTreeList,我检查了数据绑定的在线文档,这是我找到的代码:
Imports Microsoft.VisualBasic
Imports System
Partial Public Class Data_Hierarchical
Inherits BasePage
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If (Not IsPostBack) Then
DataBind()
treeList.ExpandToLevel(1)
End If
End Sub
End Class
但是 DataBind() 是如何实现的?
i want to databind hierarchical data from plain data to the ASPxTreeList, i checked the documentation online for the the databinding, this is the code i found:
Imports Microsoft.VisualBasic
Imports System
Partial Public Class Data_Hierarchical
Inherits BasePage
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If (Not IsPostBack) Then
DataBind()
treeList.ExpandToLevel(1)
End If
End Sub
End Class
but how DataBind() is implemented?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DataBind 是 System.Web.UI.Control 类的一种方法,MSDN 中对此进行了描述:
Control.DataBind
事实上,我们在代码中重写了这个方法,类似于MSDN中描述的方式。
The DataBind is a method of the System.Web.UI.Control class and it is described in MSDN:
Control.DataBind
In fact, we override this method in our code the way similar to the one described in the MSDN.