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:
col.prop1 +' '+ col.prop2
?col.prop1.ToString(overloaded)
A simple codebehind example will help. All I can find are very complex controls and stuff for examples..
Thank you.
You can also use calculated columns
<telerik:GridCalculatedColumn HeaderText="Test" UniqueName="Test" DataType="System.String"
DataFields="Field1, Field2" Expression='{0} + " - " + {1}'></telerik:GridCalculatedColumn>
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/calculatedcolumns/defaultcs.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With