wpf-devexpress-dot-xpf-dot-grid-dot-columndataeventargsbase-5dfff6fd.md
Gets whether you should provide data for the currently processed cell.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool IsGetData { get; }
Public ReadOnly Property IsGetData As Boolean
| Type | Description |
|---|---|
| Boolean |
true to provide data for the currently processed cell; otherwise, false.
|
To learn more, see GridControl.CustomUnboundColumnData.
The following code snippets (auto-collected from DevExpress Examples) contain references 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.
wpf-data-grid-change-background-color-for-modified-cells/CS/HighlightChangedCellBehavior.cs#L53
var key = Tuple.Create(AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName);
if (e.IsGetData) {
bool res;
if (targetProperty == null) return;
if (e.IsGetData) {
e.Value = targetProperty.GetValue(item);
wpf-data-grid-create-unbound-columns/CS/DXGrid_UnboundColumns_CodeBehind/Window1.xaml.cs#L12
void grid_CustomUnboundColumnData(object sender, GridColumnDataEventArgs e) {
if(e.IsGetData) {
int price = Convert.ToInt32(e.GetListSourceFieldValue(nameof(Product.UnitPrice)));
if(e.Column.FieldName == "IconUnbound") {
if(e.IsGetData) {
MyObject row = dataSource[e.ListSourceRowIndex];
wpf-data-grid-change-background-color-for-modified-cells/VB/HighlightChangedCellBehavior.vb#L75
Dim key = System.Tuple.Create(Me.AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName)
If e.IsGetData Then
Dim res As Boolean
End If
If e.IsGetData Then
e.Value = targetProperty.GetValue(item)
wpf-data-grid-create-unbound-columns/VB/DXGrid_UnboundColumns_CodeBehind/Window1.xaml.vb#L16
Private Sub grid_CustomUnboundColumnData(ByVal sender As Object, ByVal e As GridColumnDataEventArgs)
If e.IsGetData Then
Dim price As Integer = Convert.ToInt32(e.GetListSourceFieldValue(NameOf(Product.UnitPrice)))
If Equals(e.Column.FieldName, "IconUnbound") Then
If e.IsGetData Then
Dim row As MyObject = dataSource(e.ListSourceRowIndex)
See Also