How Do I Customize A Table's Columns?
A column template is nothing more than a Revolution control that is named after a column in your table. This control is located in the row template group for your data grid. This lesson will discuss how to create templates for columns in a data grid table.
Use Property Inspector To Create a Column Template
Edit the Row Template Group
Edit Column Group
A Column Template
In this example I have created three controls for three different columns in my data grid table.
1) A field named "Time" that formats data into a time format (I just renamed the field that was included in the row template by default).
2) A group named "My Rating". The group has some buttons that display the image of a star.
3) A button named "Genre" that offers different Genre selections.
Here is what the FillInData handler looks like for the "My Rating" column. pData (1) contains the value of the "My Rating" column for the row being displayed. Note how this parameter differs than the parameter sent to FillInData for a row template. For a row template the parameter passed in is an array.
We then use that value to determine how many stars to display (2).