ASP.Net 2.0 broke my DataGridHelper Control. It broke at the following line:
IDbCommand updateCommand = (IDbCommand)_dataAdapter.GetType().GetProperty("UpdateCommand").GetValue(_dataAdapter, null);
The exception is AmbiguousMatchException. The problem is that the SqlDataAdaptor class has both the UpdateCommand property and the IDbCommand.UpdateCommand properties now. The fix to the problem is to use an overloaded GetProperty method:
IDbCommand updateCommand = (IDbCommand)_dataAdapter.GetType().GetProperty("UpdateCommand", BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly).GetValue(_dataAdapter, null);