| List for WinForms Tutorials > Tutorial 8 Displaying Translated Data |
In this tutorial, you will learn how to use the Translate and DisplayValue properties to assign text to numerical values for a more descriptive list.
![]() |
Note: See Adding the C1List Components to a Project for information on adding a component to the Toolbox. |
SELECT Contacts.UserCode, Contacts.ContactDate, Contacts.Callback,
Contacts.Comments, Contacts.ContactType, Customers.LastName,
Customers.FirstName, Customers.Company, Customers.Contacted, Customers.Phone,
Customers.CustType FROM (Contacts INNER JOIN Customers ON Contacts.UserCode = Customers.UserCode)![]() |
Note: If all of the columns are not showing up in C1List, select the DataSource again from the drop-down menu. |
To write code in Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
Me.ContactsTableAdapater.Fill(Me.DsContacts.Contacts) |
|
To write code in C#
| C# |
Copy Code
|
|---|---|
this.ContactsTableAdapater.Fill(this.DsContacts.Contacts); |
|

| Member | DisplayValue | Value |
|---|---|---|
| 1 | Normal | 2 |
| 2 | Buyer | 3 |
| 3 | Distributor | 4 |
| 4 | Other | 5 |
The ValueItem Collection Editor should look like the following:



This concludes the tutorial.