ASPxGridView的数据源设置、导出pdf和xls以及展开
程序员文章站
2024-03-13 12:44:45
...
ASPxGridView是一强大的数据表编辑、查询组件,下面是如何使用的简要教程 :
1、拖拽ASPxGridView组件:
2、设置数据源:
3、放置aspxbutton按钮,并创建click事件,并编写导出代码:
Protected Sub ASPxButton1_Click(sender As Object, e As EventArgs) Handles ASPxButton1.Click
gridviewexport.WritePdfToResponse()
End Sub
Protected Sub ASPxButton2_Click(sender As Object, e As EventArgs) Handles ASPxButton2.Click
gridviewexport.WriteXlsToResponse()
End Sub
Protected Sub ASPxButton3_Click(sender As Object, e As EventArgs) Handles ASPxButton3.Click
Me.ASPxGridView1.ExpandAll()
End Sub
4、结果:
上一篇: 钉钉开发之发起审批部分更新