Is there a way to push a print button to print the just the contents of a
datagrid. I have the actionscript for the button, but it seems to print the
entire form instead of the datagrid only.

The code is taken from livedocs if it looks familiar. :)

Thanks Ronin

on(click) {
var my_pj = new PrintJob();
var myResult = my_pj.start();
if(myResult){
myResult = my_pj.addPage (0, {xMin : 0, xMax: 400, yMin: 0, yMax: 400});
myResult = my_pj.addPage ("serverEventsDataGrid", {xMin : 0, xMax: 400,
yMin: 400, yMax: 800},{printAsBitmap:true}, 1);
myResult = my_pj.addPage (1, null,{printAsBitmap:false}, 2);
myResult = my_pj.addPage (0);
my_pj.send();
}
delete my_pj;
}