I need to create variable object property names for use with the data grid component.
This works:
data = new Object();
data.some_name = "the data";
But this does not:
data = new Object();
colName = "some_name";
data[colName] = "the data";
Can anyone help me? Can object property names be variable?