all groups > flash actionscript > june 2004 >
You're in the

flash actionscript

group:

Applying dif format to every cell in a datagrid


Applying dif format to every cell in a datagrid randy__austin
6/16/2004 7:55:54 PM
flash actionscript:
Somebody can tell me how can I apply different format to every cell in a
datagrid column?
i.e. i want to apply different color for every cell text in the same columnn.

thanx in advance for any help
Re: Applying dif format to every cell in a datagrid Taku105
6/16/2004 9:53:15 PM
If I understand what you mean you will need to use setStyle. See code

with (datagrid name) {
columnNames = ["name1", "name2", "name3"];
showHeaders = true;
getColumnAt(0).width = 60;
getColumnAt(0).headerText = "1";
getColumnAt(0).setStyle("backgroundColor", 0xff00aa);
getColumnAt(1).width = 100;
getColumnAt(1).headerText = "2";
getColumnAt(2).width = 100;
getColumnAt(2).headerText = "3";

}
Re: Applying dif format to every cell in a datagrid randy__austin
6/17/2004 3:42:02 PM
AddThis Social Bookmark Button