Back to Devexpress

ASPxGridColumnDataEventArgs.IsGetData Property

aspnet-devexpress-dot-web-dot-aspxgridcolumndataeventargs.md

latest4.5 KB
Original Source

ASPxGridColumnDataEventArgs.IsGetData Property

Gets whether you should provide data for the currently processed cell.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public bool IsGetData { get; }
vb
Public ReadOnly Property IsGetData As Boolean

Property Value

TypeDescription
Boolean

true if you need to provide data for the currently processed cell; otherwise, false.

|

Remarks

Find control-specific information (for ASPxGridView, ASPxCardView or ASPxVerticalGrid) in the sections below.

ASPxGridView

If the IsGetData property returns true, the ASPxGridView.CustomUnboundColumnData event handler should provide data for the cell currently being processed. You need to obtain the data for this cell from a custom data source and assign it to the ASPxGridColumnDataEventArgs.Value property.

Grid View - Get Started

ASPxCardView

If the IsGetData property returns true, the ASPxCardView.CustomUnboundColumnData event handler should provide data for the cell currently being processed. You need to obtain the data for this cell from a custom data source and assign it to the ASPxGridColumnDataEventArgs.Value property.

Card View - Get Started

ASPxVerticalGrid

If the IsGetData property returns true, the ASPxVerticalGrid.CustomUnboundRowData event handler should provide data for the cell currently being processed. You need to obtain the data for this cell from a custom data source and assign it to the ASPxGridColumnDataEventArgs.Value property.

Vertical Grid - Get Started

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsGetData 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-editable-unbound-columns/CS/UnboundColumnForCommenting/Default.aspx.cs#L39

csharp
protected void ASPxGridView1_CustomUnboundColumnData(object sender, DevExpress.Web.ASPxGridViewColumnDataEventArgs e) {
    if(e.IsGetData && e.Column.FieldName == "Comment") {
        object key = e.GetListSourceFieldValue(e.ListSourceRowIndex, ASPxGridView1.KeyFieldName);

asp-net-web-forms-grid-editable-unbound-columns/VB/UnboundColumnForCommenting/Default.aspx.vb#L36

vb
Protected Sub ASPxGridView1_CustomUnboundColumnData(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGridViewColumnDataEventArgs)
    If e.IsGetData AndAlso Equals(e.Column.FieldName, "Comment") Then
        Dim key As Object = e.GetListSourceFieldValue(e.ListSourceRowIndex, ASPxGridView1.KeyFieldName)

See Also

ASPxGridColumnDataEventArgs Class

ASPxGridColumnDataEventArgs Members

DevExpress.Web Namespace