Original Text Format: gridviewfont

Source: Internet
Author: User

Original Text Format: gridviewfont

1) Text: vnd. ms-excel.numberformat :@

2) Date: vnd. ms-excel.numberformat: yyyy/mm/dd

3) number: vnd. ms-excel.numberformat: #,## 0.00

4) Currency: vnd. ms-excel.numberformat: ¥ #, #0.00

5) percentage: vnd. ms-excel.numberformat: # 0.00%

Usage: Add code e. Row. Cells [0]. Attributes. Add ("style", "vnd. ms-excel.numberformat: @") in the RowDataBound event of the GridView :@");

Articles you may be interested in:
  • Three methods for exporting asp.net dview to Excel [test]
  • Export asp.net GridView to Excel Code
  • How to export Excel using GridView
  • Select Excel export solution for GridView
  • Export data from the DataGridView to Excel using the clipboard
  • C # How to Use RenderControl to export the GridView control to EXCEL
  • ASP. NET using the GridView to export Excel Implementation Method
  • C # export the GridView data to an Excel file instance

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.