I am having issue with my datagrid view. I plcaed some code in the 'SelectionChanged' event of the control.
What the code does is it assigns items based on index to textbox items. This exception is raised when ever I click on the column header of the data grid view.
What seems to be the problem?