If you decide later (once you have an idea of how to better design your code), to test after the fact, that's fine.
The important thing right now is to separate the concerns. It's more or less the default design pattern for Win Forms.
The problem I am having is how to refactor logic to an external class, that has references to the winform controls.
Form All following code is part of private string last Edited Cell Value; private void dgv Replenish_Cell Begin Edit(object sender, Data Grid View Cell Cancel Event Args e) private void dgv Replenish_Cell Validating(Object sender, Data Grid View Cell Validating Event Args e) private void dgv Replenish_Cell Clicked(object sender, Data Grid View Cell Event Args e) private void dgv Replenish_Cell Formatting(object sender, Data Grid View Cell Formatting Event Args e) private void dgv Replenish_Cell Value Changed(object sender, Data Grid View Cell Event Args e) The truth is, it's really very hard to refactor this code out of the code behind once it's been written like this.
Now i am click on the other controls like button or checkbox (outside of the gridview), some of the control events(telerik controls) were fired and some (Non Telerik controls) was not fired. How to restirct the other controls(Non Telerik controls) event Regards, Sasi Hi Sasireka, I did not manage to reproduce the issue with the latest release Q3 2012 SP1.There are two flavors, passive and supervising controller.The very first thing you need to do is make sure that your form is not responsible for retrieving the Data Table. The Presenter should be responsible for providing it to the View.I would suggest that you start writing your tests first, for now at least.
The benefit there is that you have to design your code to be testable to begin with.
I want to refactor this code that is currently in a partial Form Class and deals with edits made on certain cells in a datagridview (in this case called dgv Replenish).