Class GridTextColumn
Represents a column that is used to display string content in its cells and host a TextBox in edit mode.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridTextColumn : GridTextColumnBase, IDisposable, INotifyDependencyPropertyChanged, IFilterDefinition
Remarks
Use GridTextColumn for string-based fields when the cell content is edited through a text box.
Constructors
GridTextColumn()
Initializes a new instance of GridTextColumn class.
Declaration
public GridTextColumn()
Fields
CharacterCasingProperty
Identifies the CharacterCasing dependency property.
Declaration
public static readonly DependencyProperty CharacterCasingProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Remarks
The identifier for the CharacterCasing dependency property.
Properties
CharacterCasing
Gets or sets a value that specifies the character casing to apply in the edit-mode text box.
Declaration
public CharacterCasing CharacterCasing { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Controls.CharacterCasing | One of the System.Windows.Controls.CharacterCasing enumeration that specifies the character casing transformation. The default value is System.Windows.Controls.CharacterCasing.Normal. |
Remarks
This property controls the System.Windows.Controls.TextBox.CharacterCasing property of the in-place edit editor when a cell enters edit mode. When set to System.Windows.Controls.CharacterCasing.Upper, manually typed characters are automatically converted to uppercase. When set to System.Windows.Controls.CharacterCasing.Lower, manually typed characters are automatically converted to lowercase. When set to System.Windows.Controls.CharacterCasing.Normal, no automatic conversion is applied (default behavior).
This property only affects character casing during cell editing. The display-mode TextBlock is not affected.
Custom GridCellTextBoxRenderer overrides that set System.Windows.Controls.TextBox.CharacterCasing after calling base.OnInitializeEditElement will override this column-level setting.
Methods
SetDisplayBindingConverter()
Sets the converter for the DisplayBinding of GridTextColumn.
Declaration
protected override void SetDisplayBindingConverter()
Overrides
Remarks
You can override this method to specify the converter for DisplayBinding .
UpdateBindingBasedOnAllowEditing()
Updates the binding for the AllowEdit property changes in the GridTextColumn.
Declaration
protected override void UpdateBindingBasedOnAllowEditing()