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.
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