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

GridViewSummaryItem

2 Answers 41 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Saif
Top achievements
Rank 2
Saif asked on 27 Aug 2014, 01:54 PM
How can i change the TextAlignment to MiddleRight?
Thanks

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 01 Sep 2014, 11:23 AM
Hello Saif,

Thank you for writing.

In order to achieve your goal, it is appropriate to use the ViewCellFormatting event and set the CellElement.TextAlignment property to ContentAlignment.MiddleRight if the CellElement is GridSummaryCellElement. Our Formatting Cells help article is quite useful about this topic.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Saif
Top achievements
Rank 2
answered on 01 Sep 2014, 11:58 AM
Hi Desislava,

Is used below code and its perfectly working
if (e.CellElement is GridSummaryCellElement)
  e.CellElement.TextAlignment = ContentAlignment.MiddleRight;
Thanks a lot
Tags
GridView
Asked by
Saif
Top achievements
Rank 2
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Saif
Top achievements
Rank 2
Share this question
or