If a DataRow has been generated by using a DbCommand and DbDataAdapter, how do you access the contents of a single value in the DataRow?
If I know that DataRow("MyField") will contain a String, how do I get the String out of this object?
If it is known that the data type of the field is a
String, then it can simply be assigned to aStringvariable:An exception may be raised if the data type of the field is not in fact a
String.