Dear All,
I am using Imagistics webgrid for binding data’s from my databases. When I try to right align one column using CSS it is not working. But other CSS property id working for this column like back color, foreclour etc..I tried several ways, but no result. Could you please help me over this?
For your reference I am pasting below by script of the column in my grid
<ig:BoundDataField DataFieldName="Km" DataType="System.Decimal" Key="Km"
Width="50px" DataFormatString="{0:0.00}" CssClass="style1" >
<Header Text="Km" />
</ig:BoundDataField>
The style is used is
<style type="text/css">
.style1
{
text-align:right
color: #FF0000;
}
</style>
In the above code Colour work and alignment does not, please help me.
Hello,
Thank you for posting in our forums.
Please refer to the article below which you may find helpful
http://community.infragistics.com/blogs/engineering/archive/2010/08/25/webdatagrid-css-styling-guide.aspx
You should declare the css class like this:
tbody > tr > td.style1
text-align: right;
Let me know if you need further assistance
Dear Georgieva,
Thanks for the help,It woked.
Regards
Rajesh Kamalakshan