This topic demonstrates how you can use the Update/Refresh button to send changes and re-fetch data from the database. Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Private Sub c1DbNavigator1_UpdateData(sender As Object, e As System.EventArgs) c1ExpressConnection1.Update() End Sub Private Sub c1DbNavigator1_RefreshData(sender As Object, e As System.EventArgs) c1ExpressConnection1.Fill() End Sub |
To write code in C#
C# |
Copy Code
|
---|---|
private void c1DbNavigator1_UpdateData(object sender, System.EventArgs e) { c1ExpressConnection1.Update(); } private void c1DbNavigator1_RefreshData(object sender, System.EventArgs e) { c1ExpressConnection1.Fill(); } |