July 6th, 2009, 12:58 AM
Question about DataGridView with ComboBox column
Iím making a dialog which has a DataGridView bound to a simple XML file through a DataSet. The first column in the grid is a ComboBox type. The ComboBox has a set of numbers based on the immediate input. The set in the ComboBox may change from time to time, and the value stored in the XML may no longer be a part of the set**. When that happens, I get a DataError event and ArgumentException. What would be the best way to handle that? Of course, I can just ignore all ArgumentException, but I donít feel that that would be the best practice.
** Thatís not abnormal. The operator is expected to pick a value from the new set.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!