When using the method that comes with datagrid to load the list, when an error is encountered in the background, it cannot pass
jsonResult.Data = new ExceuteResult(ExceuteResultType.Error, "Parameter error!");
to return an error,
Because datagrid has a default return format, it needs to be changed to the corresponding format below, which must have total and rows
jsonResult.Data = new
{
total = 0,
errorMsg = "Parameter error!",
rows = ""
};