Hello,
There is not a way to attach javascript functions to the WebPart. However, we have client validation for number cells already. You can format the column as a Number type and if a user trys to type non numerical data in the cell, we display an error message.
Scott S.
Product Manager, Spread ASP.NET
GrapeCity FarPoint