如何以编程方式更改实时代码中数据网格列的标签
How to programatically change the label of a datagrid column in livecode
我有 2 组数据要显示在同一个网格中。所需列的数量和大小相同,但我需要更改列 headers。我如何以编程方式做到这一点
尝试使用 dgProps 数组更改 "columns" 属性:
set the dgProps["columns"] of control "DataGrid 1" to "col3" & cr & "col2" & cr & "col1"
有关更多数据网格 属性 信息,请参阅此页面:http://lessons.runrev.com/m/datagrid/l/7343-data-grid-properties
我有 2 组数据要显示在同一个网格中。所需列的数量和大小相同,但我需要更改列 headers。我如何以编程方式做到这一点
尝试使用 dgProps 数组更改 "columns" 属性:
set the dgProps["columns"] of control "DataGrid 1" to "col3" & cr & "col2" & cr & "col1"
有关更多数据网格 属性 信息,请参阅此页面:http://lessons.runrev.com/m/datagrid/l/7343-data-grid-properties