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
539
CSS property for alignment does not work in webgrid
posted

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.

 

 

 

 

 

Parents Reply Children
No Data