I am setting a range validation in myRow but it is not working. I would like to limit it between 0 and 1000.

How and where to do it.

Range validation in what field? Is an integer? In your form set

[IntegerEditor(MinValue = 0, MaxValue = 1000)]

over the field