当前位置:编程学习 > C#/ASP.NET >>

清空datagridview

  Public Sub ClearAllRows()
        If Not CType(Me.DataGVDepotInSet.DataSource, DataTable) Is Nothing Then
            CType(DataGVDepotInSet.DataSource, DataTable).Rows.Clear()
        End If
    End Sub --------------------编程问答-------------------- DataGVDepotInSet.DataSource=Nothing
补充:.NET技术 ,  非技术区
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,