Back to Devexpress

CustomColumnDataEventArgs.Column Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-customcolumndataeventargs.md

latest5.9 KB
Original Source

CustomColumnDataEventArgs.Column Property

Gets the unbound column currently being processed.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public GridColumn Column { get; }
vb
Public ReadOnly Property Column As GridColumn

Property Value

TypeDescription
GridColumn

A GridColumn object representing the unbound column currently being processed.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Column 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.

winforms-charts-show-chart-legend-with-markers-in-separate-control/CS/Form1.cs#L83

csharp
{
    if (e.IsGetData && e.Column == colImage)
    {

winforms-grid-customize-data-aware-export-output/CS/GridDataAwareExportCustomization/Form1.cs#L31

csharp
GridView view = sender as GridView;
if(e.Column == categoryName)
    if(e.IsGetData) {

winforms-grid-multiple-row-selection-web-style-checkboxes/CS/E1271/CheckMarkSelection.cs#L199

csharp
void view_CustomUnboundColumnData(object sender, CustomColumnDataEventArgs e) {
    if(e.Column == CheckMarkColumn) {
        if(e.IsGetData)

winforms-grid-add-radio-group-column/CS/Helper/GridRadioGroupColumnHelper.cs#L74

csharp
{
    if (e.Column == RadioGroupColumn)
    {

winforms-grid-popupcontaineredit-with-dynamic-content/CS/Q148684/Form1.cs#L64

csharp
private void OnGridViewCustomUnboundColumnData(object sender, CustomColumnDataEventArgs e) {
    if (e.Column == colUseGrid)
        if (e.IsGetData)

winforms-charts-show-chart-legend-with-markers-in-separate-control/VB/Form1.vb#L77

vb
Private Sub gridView1_CustomUnboundColumnData(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.CustomColumnDataEventArgs)
    If e.IsGetData AndAlso e.Column Is colImage Then
        e.Value = legendMarkersTable(CType(e.Row, Series))

winforms-grid-customize-data-aware-export-output/VB/GridDataAwareExportCustomization/Form1.vb#L32

vb
Dim view As GridView = TryCast(sender, GridView)
If e.Column Is categoryName Then
    If e.IsGetData Then

winforms-grid-multiple-row-selection-web-style-checkboxes/VB/E1271/CheckMarkSelection.vb#L232

vb
Private Sub view_CustomUnboundColumnData(ByVal sender As Object, ByVal e As CustomColumnDataEventArgs)
    If e.Column Is CheckMarkColumn Then
        If e.IsGetData Then

winforms-grid-add-radio-group-column/VB/Helper/GridRadioGroupColumnHelper.vb#L74

vb
Private Sub _GridView_CustomUnboundColumnData(ByVal sender As Object, ByVal e As CustomColumnDataEventArgs)
    If e.Column Is RadioGroupColumn Then
        If e.IsGetData Then

winforms-grid-popupcontaineredit-with-dynamic-content/VB/Q148684/Form1.vb#L67

vb
Private Sub OnGridViewCustomUnboundColumnData(ByVal sender As Object, ByVal e As CustomColumnDataEventArgs) Handles gridView1.CustomUnboundColumnData
    If e.Column Is colUseGrid Then
        If e.IsGetData Then

See Also

CustomColumnDataEventArgs Class

CustomColumnDataEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace