ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.ValueTranslate Property

Gets or sets a value that determines how the grid display values in a column.

[Visual Basic]

Public Property ValueTranslate As Boolean

[C#]

public bool ValueTranslate {get;set;}

[Delphi]

public property ValueTranslate: Boolean read get_ValueTranslate write set_ValueTranslate;

Remarks

To use this property, set the following C1TrueDBDropdown properties:

·      ValueMember property

·      DisplayMember property

When this property is set to True, the grid will automatically display the DisplayMember values in the associated column.

Example

The following code sets the ValueTranslate property to True, ValueMember property to update the TypeDesc column, and DisplayMember property to display the TypeID column:

·      Visual Basic

       Me.C1TrueDBDropdown1.ValueTranslate = True

       Me.C1TrueDBDropdown1.DisplayMember = "TypeDesc"

       Me.C1TrueDBDropdown1.ValueMember = "TypeID"

·      C#

       this.c1TrueDBDropdown1.ValueTranslate = true;

       this.c1TrueDBDropdown1.DisplayMember = "TypeDesc";

       this.c1TrueDBDropdown1.ValueMember = "TypeID";

·      Delphi

       Self.C1TrueDBDropdown1.ValueTranslate := True;

       Self.C1TrueDBDropdown1.DisplayMember := 'TypeDesc';

       Self.C1TrueDBDropdown1.ValueMember := 'TypeID';

See Also

C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.