System.Windows.Forms.DataGridColumnStyle.MappingName Property

Gets or sets the name of the data member to map the column style to.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.Editor("System.Windows.Forms.Design.DataGridColumnStyleMappingNameEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
public string MappingName { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The comparison used to match the DataGridColumnStyle.MappingName to the data member is case-insensitive.

This System.Windows.Forms.DataGridColumnStyle is used to render the data in the indicated data member whenever the data source matches the one indicated by the DataGridTableStyle.MappingName property of the System.Windows.Forms.DataGridTableStyle that contains this column style.

The DataGridColumnStyle.MappingName property is usually set to the System.Data.DataColumn.ColumnName of a System.Data.DataColumn.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0