Skip to main content

ASPxClientGridView.Refresh Method

Updates grid data.

Declaration

Refresh(): void

Remarks

Call the Refresh method to update grid data. Once called, the method sends a callback to the server and rebinds the grid control.

Run Demo: Large Database (Server mode) View Example: How to refresh a master grid on a detail grid callback

Note

In batch edit mode, the Grid View control does not show the confirmation dialog after you call the Refresh method.

Web Forms Example

<dx:ASPxGridView runat="server" ID="ASPxGridView1">
    <ClientSideEvents EndCallback="OnEndCallback" BeginCallback="OnBeginCallback"/> 
    <!-- ... -->
</dx:ASPxGridView>

MVC Example

@Html.DevExpress().GridView(settings => {
    settings.Name = "GridView1";
    settings.KeyFieldName = "ID";

    settings.ClientSideEvents.BeginCallback = "function(s, e) { command = e.command; }";
    settings.ClientSideEvents.EndCallback = "function(s, e) { if (command == 'ADDNEWROW') {
        s.Refresh(); } }";
}).Bind(Model).GetHtml() 
See Also