New computed column always returns 0;

Hey all,

I have added a column to grid,and written a method taht returns an in value as:

private int method1()

{

return 1;

}

Added a new column to the grid which is an intedit.Also datamethod of this column is correctly pointed to my method (method1),normally i should be seeing 1,but seems like my method is not working any ideas?

Hi ,

Try to display method

display int method1()

{

;

return 1;

}

if you write this you shold see 1 on your grid.