Hi..Telerik Team
How to clear all cells value after binding a data then reload data. Here's my code.
Class Module
Public Function GetDataTable(ByVal Query As String) As DataTable
Dim adapter As New SqlDataAdapter()
Dim mydt As New DataTable()
Using Conn As New SqlConnection(DBConnection)
adapter.SelectCommand = New SqlCommand(Query, Conn)
adapter.Fill(mydt)
End Using
Return mydt
End Function
---> i use above function to binding data into my grid and succeed
- Click NEW button then clear all cells value just loaded.My code as below
Me.RadGridView1.DataSource = New DataTable()
- Click LOAD button to load another data
dim vQstr as string = "SELECT * FROM table"
RadGridView1.DataSource = objDB.GetDataTable(vQStr)
1. problem is when i load another data, my grid didnt show any data. Please kindly help
2. can manually save gridview data records into database by clicking a button, but user allows to add, edit and delete row before do saving
Thank you