Skip to main content

[Migrated content. Thread originally posted on 02 March 2005]

Is there any way to manipulate properties (especially column properties) of a griid with sending in the whole set?

for example, to set display columns, i have to use modify with parameter (1,11,21). The problem with this is that your code has to essentially have the number of colums hard coded in it.

Ideally, it would be nice to send in the property as a string, like
modify grid1 display-columns = ("1,21,31"), but this does not work. Also o.k. would be to manipulate individual properties:
modify grid1 display-columns[1] = 10.

Is it possible to do this? (particularly the latter case)

Merlin

[Migrated content. Thread originally posted on 02 March 2005]

Is there any way to manipulate properties (especially column properties) of a griid with sending in the whole set?

for example, to set display columns, i have to use modify with parameter (1,11,21). The problem with this is that your code has to essentially have the number of colums hard coded in it.

Ideally, it would be nice to send in the property as a string, like
modify grid1 display-columns = ("1,21,31"), but this does not work. Also o.k. would be to manipulate individual properties:
modify grid1 display-columns[1] = 10.

Is it possible to do this? (particularly the latter case)

Merlin
Merlin,

modify grid1 display-columns = (1,21,31) should work, without the quotes. Or modify grid1 display-columns = (x1, x2, x3) works as well.

Chin

[Migrated content. Thread originally posted on 02 March 2005]

Is there any way to manipulate properties (especially column properties) of a griid with sending in the whole set?

for example, to set display columns, i have to use modify with parameter (1,11,21). The problem with this is that your code has to essentially have the number of colums hard coded in it.

Ideally, it would be nice to send in the property as a string, like
modify grid1 display-columns = ("1,21,31"), but this does not work. Also o.k. would be to manipulate individual properties:
modify grid1 display-columns[1] = 10.

Is it possible to do this? (particularly the latter case)

Merlin
You can dynamically create grids and control virtually every property programatically.

In your example:

modify grid display-columns(1,21,31)

This can also be accomplished by the following statements

modify grid display-columns = 1
modify grid display-columns = 21
modify grid display-columns = 31

Everytime display-columns is set to a non zero value, a new column is created.

Gene

[Migrated content. Thread originally posted on 02 March 2005]

Is there any way to manipulate properties (especially column properties) of a griid with sending in the whole set?

for example, to set display columns, i have to use modify with parameter (1,11,21). The problem with this is that your code has to essentially have the number of colums hard coded in it.

Ideally, it would be nice to send in the property as a string, like
modify grid1 display-columns = ("1,21,31"), but this does not work. Also o.k. would be to manipulate individual properties:
modify grid1 display-columns[1] = 10.

Is it possible to do this? (particularly the latter case)

Merlin
You can dynamically create grids and control virtually every property programatically.

In your example:

modify grid display-columns(1,21,31)

This can also be accomplished by the following statements

modify grid display-columns = 1
modify grid display-columns = 21
modify grid display-columns = 31

Everytime display-columns is set to a non zero value, a new column is created.

Gene