默认无格式的情况下:
如果想要保持单元格里面内容长度一致的话,就要把单元格格式设置为text
效果如下:
代码设置格式:
spreadsheetControl1.ActiveWorksheet.Range.Parse("1:1048576").NumberFormat = "@";
参考:https://supportcenter.devexpress.com/Ticket/Details/T507997/spreadsheet-control-how-to-set-cell-number-format-to-text