PDA

View Full Version : [AS3] Using DataGrid - type column


AdamAS
07-20-2008, 03:10 PM
Hi! I have a question. Can i insert a button or textField into a DataGrid column??? I need to have a button into a column wich after click will delete the row where he is. I want to do something like TileList with images but i want to use the DataGrid. Any suggest?!


sorry for my english.

best regards.

Sleeve
07-20-2008, 04:52 PM
Look into a custom cellRenderer. This is the easiest way to control datagrid cells.

AdamAS
07-22-2008, 02:58 PM
Yes i found something but only done with As 2.0 and i cant handle it in As 3.0

here are samples
http://www.adobe.com/support/documentation/en/flash/fl8/samples.html#component_samples

Sleeve
07-22-2008, 03:43 PM
The documentation has very good examples. With some digging, you can probably find a lot online about it in AS3.

AdamAS
07-22-2008, 07:48 PM
Yeah Thank to you i bit that shit!:) using interface ICellRender :]