views:

39

answers:

1

I know I need to use Template Columns, but I am not clearly understanding how to use it.

I have a datasource which returns a collection, I can assign each property in the collection to a column.

But how do I:

  • Merge two columns? such as col.prop1 +' '+ col.prop2 ?
  • Execute some methods on the properties such as col.prop1.ToString(overloaded)

A simple codebehind example will help. All I can find are very complex controls and stuff for examples..

Thank you.

A: 

The only way that comes to my mind is to to use binding expressions for the properties and code-behind methods that return the results from the property methods through those binding expressions.

Dick Lampard