In this tutorial, you will learn how to use the C1TrueDBDropDowns ValueTranslate property to automatically translate data from the drop-down detail data to the grid's master data.
Complete the following steps:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1TrueDBDropDown1.ValueTranslate = True Me.C1TrueDBDropDown1.ListField = "TypeDesc" Me.C1TrueDBDropDown1.DataField = "TypeID" |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1TrueDBDropDown1.ValueTranslate = true; this.c1TrueDBDropDown1.ListField = "TypeDesc"; this.c1TrueDBDropDown1.DataField = "TypeID"; |
You've successfully completed using the C1TrueDBDropDowns ValueTranslate property; this concludes the tutorial.