Back to Devexpress

MVCxGridView Class

aspnetmvc-devexpress-dot-web-dot-mvc-eb641bf2.md

latest5.8 KB
Original Source

MVCxGridView Class

The object of this type represents a configured instance of the corresponding extension and is intended to be used mainly as a sender parameter when processing events on the server side.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public class MVCxGridView :
    ASPxGridView,
    IGridAdapterOwner,
    IWebDataOwner,
    IViewContext,
    IFilterControlOwner
vb
Public Class MVCxGridView
    Inherits ASPxGridView
    Implements IGridAdapterOwner,
               IWebDataOwner,
               IViewContext,
               IFilterControlOwner

Remarks

Note

To add the GridView extension to the View, refer to the GridView Overview topic.

The object of MVCxGridView type represents the configured instance of DevExpress ASP.NET MVC GridView extension. The MVCxGridView object is intended to be used mainly as a sender parameter when processing events on the server side.

The code sample below illustrates how to use the MVCxGridView object within the delegate method that processes the SettingsBase.PreRender server event.

View code:

csharp
@Html.DevExpress().GridView(
    settings =>
    {
        settings.Name = "grid";
        // ...
        // Expand the first detail row.
        settings.PreRender = (sender, e) => {
            ((MVCxGridView)sender).DetailRows.ExpandRow(0);
        };
    }).Bind(Model).GetHtml()

Note

To properly follow the ASP.NET MVC pattern, it is recommended to respond to end-user actions on the client-side (see Client-Side API) or to use Ajax callbacks to the server and handle these callbacks using custom action methods (see Using Callbacks).

Implements

Show 47 items

IComponent

IDisposable

IParserAccessor

IDataBindingsAccessor

IControlBuilderAccessor

IControlDesignerAccessor

IExpressionsAccessor

IAttributeAccessor

DevExpress.Web.Internal.IWebControl

IUrlResolutionService

INamingContainer

IPostBackDataHandler

IPostBackEventHandler

ICallbackEventHandler

DevExpress.Web.Internal.IComponentHost

DevExpress.Web.IClientObjectOwner

DevExpress.Web.Internal.IPostBackDataHandlerEx

DevExpress.Web.Internal.IPostDataCollection

DevExpress.Web.Internal.IHandleCallbackError

IDataSourceViewSchemaAccessor

DevExpress.Web.Data.IWebControlPageSettings

DevExpress.Web.Data.IWebDataEvents

DevExpress.Data.IDataControllerSort

DevExpress.Web.Internal.IWebColumnsOwner

DevExpress.Web.Internal.IRequiresLoadPostDataControl

DevExpress.Web.FilterControl.IPopupFilterControlOwner

DevExpress.Web.FilterControl.IFilterControlRowOwner

DevExpress.Web.FilterControl.IPopupFilterControlStyleOwner

DevExpress.Web.IHeaderFilterPopupOwner

DevExpress.Web.Internal.ISkinOwner

IPropertiesOwner

DevExpress.Web.Internal.IPagerOwner

DevExpress.Web.Design.IControlDesigner

DevExpress.Web.IFormLayoutOwner

DevExpress.Web.IFormatConditionOwner

DevExpress.Web.Internal.IWebControlObject

IBasePrintable

DevExpress.Web.Internal.IGridExportOwner

DevExpress.Web.Internal.IFilterHelperOwner

DevExpress.Web.Internal.IBatchEditHelperOwner

DevExpress.Web.Internal.IPostBackValueSecureValidationOwner

DevExpress.Web.Internal.IGridDataGuardInfoProvider

DevExpress.Web.Internal.IDataGuardInfoProvider

DevExpress.Web.Internal.IDataStorage

DevExpress.Data.Summary.ISummaryItemsOwner

DevExpress.Web.Data.IWebDataOwner

DevExpress.Web.FilterControl.IFilterControlOwner

Inheritance

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxDataWebControlBase ASPxDataWebControl ASPxGridBase ASPxGridView MVCxGridView

See Also

MVCxGridView Members

Grid View

DevExpress.Web.Mvc Namespace