ComponentOne TileControl for WinForms
Data Binding Overview / Databinding Tutorial - Creating a Simple Databound TileControl / Step 4 of 4: Setting TileControl’s Property Mappings
In This Topic
    Step 4 of 4: Setting TileControl’s Property Mappings
    In This Topic

    In this step you will create a PropertyMapping member to bind the ProductName and the ProductName’s text to the C1TileControl.

    1. Select the C1TileControl and expand the Data node in the C1TileControl’s property window.
    2. In the C1TileControl’s Properties window click on the ellipsis button next to the PropertyMappings property. The PropertyMapping Collection Editor appears.
    3. Click Add. A C1.Win.C1Tile.PropertyMapping item will appear like the following.

    1. Click Add and set the [0] [*] -> [None] properties to the following:
      • PropertyMapping.DataField to ProductName
      This will bind the product name to each tile.
    • PropertyMapping.TileProperty to Text

    This will bind the ProductName to the Text property of the C1TileControl.

    Run the project and observe

    Press F4 to run the project and notice that the ProductName’s Text is bound to each tile in the C1TileControl.