Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Excelエクスポートするには、セルがグリッドビューで12.5から12までの数値を形成する必要があります。gridRow.Cells(6).Attributes.Add("mso-number-format","0") が1つの解決策であることがわかりましたが、12.5から13に丸められます
以下のリンクに示すように、利用可能な唯一の Excel 形式
Excel形式
あなたの場合、できることは、小数部分をトリミングしてから、それをExcelにエクスポートすることです