Hi I have created a datatable and to view its data, I use "GridControl.datasource = Datatable" but when I do any update or delete operation on datatable, I dont see any data is actually refreshing in gridview. I have tried couple of methods but nothing worked for me.
Try outs:
-
GridControl1.RefreshDataSource()
-
GridControl1.Refresh()
-
GridView1.RefreshData()
-
GridView1.RefreshEditor(True)
Dim d As New RefreshDataTableValues(AddressOf UpdateValues)
GridControl1.Invoke(d)
Public Delegate Sub RefreshDataTableValues()
Public Sub UpdateValues()
GridControl1.RefreshDataSource()
End Sub
How to bind datatable to Grid so that any update on data will change it in gridview real time?
Hi,
It's very strange, that none of these methods helps you.
Could you please provide us with a sample illustrating your issue?
We will examine it, and do our best to help you.
Thanks,
Andrew
No longer an issue.
// after delete or update on gridView1 ,, Datatable1.AcceptChanges();
Note: "Datatable1" is the datasource of gridView1