void SetupGridView(GridListEditorBase columnViewEditor) { var gridView = columnViewEditor.GridView as XpandGridView; if ((gridView != null) && (columnViewEditor.DataSource != null)) { gridView.OptionsView.ShowIndicator = false; var errorMessages = new ErrorMessages(); foreach (object obj in ListHelper.GetList(columnViewEditor.DataSource)) { errorMessages.AddMessage("ErrorMessage", obj, CaptionHelper.GetLocalizedText("Messages", "ValidationErrorMessage")); } gridView.ErrorMessages = errorMessages; } }