This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2005 > CellRenderer





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CellRenderer
Maarten

2005-08-23, 8:08 pm

hi all,

I have a datagrid and in the last row there are buttons.
can someone tel me how i can make a reference to the data in the cel where
the button is?
and that the button only gets displayed when there is data in that cell.

i use this code:

var column = new DataGridColumn("Date");
column.headerText = "Date";
column.width = 130;
myDataGrid_dg.addColumn(column);

var column = new DataGridColumn("Title");
column.headerText = "Title";
column.width = 130;
myDataGrid_dg.addColumn(column);

var column = new DataGridColumn("Dj");
column.headerText = "Dj's";
column.width = 130;
myDataGrid_dg.addColumn(column);

var column = new DataGridColumn("Info");
column.headerText = "Info";
column.width = 50;
column.cellRenderer = "mylinkage"; <---------- buttonrow
myDataGrid_dg.addColumn(column);

regards Maarten.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews