This is a migrated thread and some comments may be shown as answers.

Concatenated Column

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stavros
Top achievements
Rank 1
Stavros asked on 23 Dec 2008, 09:02 PM
I have two columns.
One is of integer type and the other is of char(1) type.
Can I have a concatenated column that will display the concatenated string?

I give you an example to see what I mean
If I have a row with C in the first column and 3 in the second column the calculated 3rd column should show C1.

Thank you very much.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Dec 2008, 05:36 AM
Hello Stavros,

You can use a CalculatedColumn and set its Expression property as shown in the code below to achieve the required scenario.
aspx:
 <telerik:GridCalculatedColumn UniqueName="CalculatedColumn" DataFields="ProductName,ProductID" Expression="{0}+{1}" HeaderText="CalculatedColumn">             
 </telerik:GridCalculatedColumn> 

Thanks
Princy.
Tags
Grid
Asked by
Stavros
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or