Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

<cfgrid> display strips leading 0

New Here ,
Sep 07, 2008 Sep 07, 2008
I have a table with a column that is defined as varchar(30) (MS SQL Server 2005). Probably 99% of the values in the column are numeric, but the value can also include an alpha character. Most of the values are three numeric characters , such as 003, 058, or 792. However, the value can be any number of characters (e.g., 0000885 or CRO549),

The values are correctly stored in the database tables with the leading 0's intact. When I make my query and display the results in a <cfgrid> form, if the value in the table has characters that are all numeric, the leading 0's are stripped. Is there a way to make the display to not delete the leading 0's?

If the value in the table has at least one alpha character in it, the leading 0'sare not stripped when displayed.
225
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 07, 2008 Sep 07, 2008
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources