Tag: grid

autowidth对devexpress网格控件列的问题

我在桌面应用程序(C#)中使用devexpress的网格控件。 我设置了一个数据源,然后导出到Excel.I希望我的所有列都取得该列中最长行值的宽度。 在这个网格中,我使用不同的数据源。 在我设置的加载forms中: gvExport.OptionsPrint.AutoWidth = false; gvExport.BestFitColumns(); grdExport.DataSource = ds; XlsExportOptions vOptions = new XlsExportOptions(); vOptions.TextExportMode = TextExportMode.Text; vOptions.ShowGridLines = true; vOptions.SheetName = "Test"; prmFileName = "Test.xls"; grdExport.ExportToXls(prmFileName, vOptions); 我的ds可以是一个列表或一个dataTable。 有人能让我自动化长度的列吗? 2.如何设置ladscape我生成的Excel页面? 谢谢

剑道网格导出为Excel头标题显示HTML字符

当我将网格导出为ex​​cel时,标题如下: Product Name , {{'unitsOrder'| translate}} 在Excel中{{'unitsOrder'| translate}} 。 我的网格支持2种语言,我用angularjs翻译方式显示它。 任何报价? <script> $("#grid").kendoGrid({ toolbar: ["excel"], excel: { fileName: "Kendo UI Grid Export.xlsx" }, dataSource: { type: "odata", transport: { read: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Products" }, pageSize: 7 }, sortable: true, pageable: true, columns: [ { width: 300, field: "ProductName", title: "<b>Product Name</b>" }, { field: "UnitsOnOrder", title: "{{'unitsOrder'| […]

将ShieldUI Grid导出到MS excel并应用其他格式

我正在使用ShieldUI Grid,并将包含的数据导出到Excel时遇到了一些困难。 导出实际上工作正常,但我需要能够应用更多的格式导出的数据。 这种情况是否会在出口本身或出口之后发生没有区别; 我只需要这样做。 将高度赞赏任何线索和最好的一些代码示例。 感谢名单!