Back to Devexpress

GridViewBaseTemplateContainer.Grid Property

aspnet-devexpress-dot-web-dot-gridviewbasetemplatecontainer.md

latest2.6 KB
Original Source

GridViewBaseTemplateContainer.Grid Property

Gets the ASPxGridView that owns the current object.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ASPxGridView Grid { get; }
vb
Public ReadOnly Property Grid As ASPxGridView

Property Value

TypeDescription
ASPxGridView

An ASPxGridView object that owns the current object.

|

Remarks

View Example: Grid View for ASP.NET Web Forms - How to use the Rich Text Editor to edit formatted text in the Edit Form

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Grid property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-mvc-grid-display-group-summary-in-group-headers/CS/Sample/Controllers/GridGroupRowContentTemplate.cs#L20

csharp
public static GridViewGroupRowTemplateContainer Container { get; set; }
private static ASPxGridView Grid { get { return Container.Grid; } }

asp-net-mvc-grid-display-group-summary-in-group-headers/VB/Sample_VB/Controllers/GridGroupRowContentTemplate.vb#L12

vb
Get
    Return Container.Grid
End Get

See Also

GridViewBaseTemplateContainer Class

GridViewBaseTemplateContainer Members

DevExpress.Web Namespace