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
DataFormatString for webgrid throwing error.
posted

Dear All,

I am using Imagistics webgrid for binding data’s from my databases. I had bounded a decimal value to the below column and even I has also specified a DataFormatString  as ="{0:0.00}".when I run the page and try to enter some decimal values it shows an error as “Microsoft JScript runtime error: Sys.FormatException: Format specifier was invalid”. 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 and the scrren shot of the error message which I gets whne I try to enter a decimal values to the cells in the below column.

  <ig:BoundDataField DataFieldName="Km" DataType="System.Decimal" Key="Km"

  Width="50px" DataFormatString="{0:0.00}"  CssClass="style1" >

  <Header Text="Km"  />

  </ig:BoundDataField>

 

 

 

Regards

Rajesh Kamalakshan