public static string ToTrimmedString(this DataRow row, string columnName) { return row[columnName].ToString().Trim(); }
Compiles fine but it doesn't show up in intellisense of the DataRow...
My guess is you haven't included the namespace.