GridViewSummaryItem

3 posts, 0 answers
  1. Saif
    Saif  avatar
    30 posts
    Member since:
    Apr 2014

    Posted 27 Aug 2014 Link to this post

    How can i change the TextAlignment to MiddleRight?
    Thanks
  2. Dess
    Admin
    Dess avatar
    1601 posts

    Posted 01 Sep 2014 Link to this post

    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.
     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Saif
    Saif  avatar
    30 posts
    Member since:
    Apr 2014

    Posted 01 Sep 2014 Link to this post

    Hi Desislava,

    Is used below code and its perfectly working
    if (e.CellElement is GridSummaryCellElement)
      e.CellElement.TextAlignment = ContentAlignment.MiddleRight;
    Thanks a lot
Back to Top