ASPxClientGridView.Refresh Method

Updates data displayed within the grid.


Refresh(): void


To update data, the Refresh method sends a callback to the server and re-binds the grid.


The following example illustrates how to use the Refresh method.

Web Forms approach:

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

MVC approach:

@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(); } }";

Online Example

Online Demo

See Also