| 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.
|