Update 2: vote for another more direct / clear answer :-)
Update: while still applicable, there is a DataRow.Field
provided by DataRowExtensions ; make sure it is referenced.
Since there is no element named Field
defined by DataRow
... maybe a special Item
instead?
Notice the example where it is used as an indexer ( row("Name")
). Neatly, huh?
(Also, something needs to be done with the Replace
result, since strings are immutable in .NET.)
Happy coding.
user166390
source share