还有下面这一段代码:
Public Overloads Function GetDataView(ByVal SqlString As String) As DataView
Dim daDB As SqlDataAdapter = New SqlDataAdapter(SqlString, strConn)
Dim dsDB As DataSet = New DataSet
daDB.Fill(dsDB, "DefTablename")
Dim dv As DataView = New DataView(dsDB.Tables("DefTablename"))
dsDB.Dispose()
daDB.Dispose()
Return dv
End Function
Public Overloads Function GetDataView(ByVal SqlString As String) As DataView
Dim daDB As SqlDataAdapter = New SqlDataAdapter(SqlString, strConn)
Dim dsDB As DataSet = New DataSet
daDB.Fill(dsDB, "DefTablename")
Dim dv As DataView = New DataView(dsDB.Tables("DefTablename"))
dsDB.Dispose()
daDB.Dispose()
Return dv
End Function
解决方案 »
- 请教抓取ajax数据
- Winform combox问题
- Form c# 程序 双击treeView的节点 同时toolStripDropDownButton里也显示相应的数据。treeView和toolStripDropDownButton要怎么绑定啊
- webbrowser在winform怎样添加阿??
- 请问OA中动态审批的库表问题!
- 怎么在长时间的查询过程中先转向一个等待页面,查许完成后再转向结果页面呢?
- 可不可以刷新窗口
- 求助:C#VSTO开发的EXCEL插件部署的问题
- httpwebresponse 超时错误,高手请帮忙,拜谢~~~~~
- Drag Drop Question
- 数据类型错误 ????HELP??
- 怎样实现 撤消/重复 功能?
http://www.microsoft.com/downloads/details.aspx?familyid=46bea47e-d47f-4349-9b4f-904b0a973174&displaylang=en