I *believe* (I haven't tested this...), but if you look at line 72, and change the part that says:
 
Enabled='<%# !Convert.ToBoolean(Eval("IsRequired")) %>'
 
To
 
Enabled='False'
 
... that will override the IsRequired code-behind and make the quantity read only.
 
Someone correct me if I'm wrong....