Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1140
Reg: Align the text to the right side for the numbers at the run time
posted

Hi,

    While creating a dynamically columns at the run time in the webdatagrid. How to align the numbers in the right side at the run time. I have attached the screen shot along with the sample code in this forum . 

Please check and correct it.

I am waiting for your message.

Thanks in Advance.

Employee Report.rar
Parents
No Data
Reply
  • 29417
    Suggested Answer
    Offline posted

    Hello Praveena

    Thank you for posting in our forum. 

    You can set for the BoundDataFields that you want to set the text to be aligned to the right a css class. For example:

    field.CssClass="rightAllign";

     

    And define such a css class on that page and set it in text-align:right. For example:

    .rightAllign

        {

            text-align:right !important;

        }

     

    The text from fields to which you set this class will be aligned to the right.

     

    Let me know if you have any question.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

     

Children
No Data