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

Showing alias not column name in grid header

1 Answer 188 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gaber
Top achievements
Rank 1
Gaber asked on 08 Jul 2008, 10:59 AM
How do I set the grid to show alias of the column not  name of  the column in header?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 08 Jul 2008, 11:38 AM
Hi Gaber,

Are you trying to set the FieldAlias in the GroupHeader? Try setting the FieldAlias as shown below.

ASPX:
                  <GroupByExpressions> 
                      <telerik:GridGroupByExpression> 
                       <GroupByFields> 
                        <telerik:GridGroupByField  FieldName="CategoryID"  /> 
                       </GroupByFields> 
                       <SelectFields> 
                        <telerik:GridGroupByField  FieldAlias="CustomText" FieldName="CategoryID"/>  
                       </SelectFields> 
                      </telerik:GridGroupByExpression> 
                    </GroupByExpressions> 


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