Back to Devexpress

ASPxGridLookup.GridView Property

aspnet-devexpress-dot-web-dot-aspxgridlookup.md

latest2.7 KB
Original Source

ASPxGridLookup.GridView Property

Provides access to an embedded ASPxGridView object.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDescription
ASPxGridView

An ASPxGridView object that is an embedded grid.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridView 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-web-forms-grid-lookup-access-selected-data/CS/ASPxGridLookUpSelection/ServerSide_SingleSelect.aspx.cs#L10

csharp
protected void GetSelectionButton_Click(object sender, EventArgs e) {
    ASPxGridView grid = ASPxGridLookup1.GridView;
    object value = grid.GetRowValues(grid.FocusedRowIndex, new string[] { "ProductName" });

asp-net-web-forms-grid-lookup-access-selected-data/VB/ASPxGridLookUpSelection/ServerSide_SingleSelect.aspx.vb#L13

vb
Protected Sub GetSelectionButton_Click(ByVal sender As Object, ByVal e As EventArgs)
    Dim grid As ASPxGridView = ASPxGridLookup1.GridView
    Dim value As Object = grid.GetRowValues(grid.FocusedRowIndex, New String() {"ProductName"})

See Also

ASPxGridLookup

ASPxGridLookup Class

ASPxGridLookup Members

DevExpress.Web Namespace