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

Having 2 datafield values

1 Answer 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Lubna Ansari
Top achievements
Rank 1
Lubna Ansari asked on 30 Mar 2011, 09:35 AM
Hi,

Can I add  2 data field values from client side in one column.
I need to show a currency value and format in one column which is calculated thorugh stored procedure.

 

<telerik:GridBoundColumn  HeaderText="Currency" DataField="Value" DataField ="Format" UniqueName="SC">

 

 

</telerik:GridBoundColumn>

 


I dont want to add anything in code behind.

Thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Mar 2011, 09:46 AM
Hello,


You could use GridTemplateColumn instead of GridBoundcolumn, which can be customisable based on the requrement without any additional code.

Mark-up:
<telerik:GridTemplateColumn HeaderText="Currency" UniqueName="TemplateColumn">
  <EditItemTemplate>    
       .  .  .
  </EditItemTemplate>
  <ItemTemplate>       
      <%# Eval("Value") %>
      <%# Eval("Format") %>
  </ItemTemplate>
</telerik:GridTemplateColumn>

Check the GridTemplateColumn section in the following documentation:
Column types


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