Setting field in EpiDataView not working

I tried changing the method away from Static, but get this error:

Compiling Custom Code ... 

----------errors and warnings------------

 Error: CS0708 - line 245 (4267) - 'btnClearQASample_Click': cannot declare instance members in a static class

 ** Compile Failed. **

I don’t want to change the Class definition, because it’s the base Epicor form.