J
Jon S via DotNetMonster.com
Hi all,
If the dcSource.ColumnName == 'Text' then I would like to change the contents
of drSource[dcSource.ColumnName]. How would I do this? I know I could use
the ToString() method on the drSource[dcSource.ColumnName] to return a value
and then use the replace() method on that value. Although I would like to
change the contents using an ADO.NET way. Can this be done and how? Thanks
in advance.
if( "Text" == dcSource.ColumnName.ToString() )
{
//somehow find out if a certain string is present in the below and
if so then change the contents of the below, then copy value across.
drSource[dcSource.ColumnName] = drSource[dcSource.ColumnName]
}
If the dcSource.ColumnName == 'Text' then I would like to change the contents
of drSource[dcSource.ColumnName]. How would I do this? I know I could use
the ToString() method on the drSource[dcSource.ColumnName] to return a value
and then use the replace() method on that value. Although I would like to
change the contents using an ADO.NET way. Can this be done and how? Thanks
in advance.
if( "Text" == dcSource.ColumnName.ToString() )
{
//somehow find out if a certain string is present in the below and
if so then change the contents of the below, then copy value across.
drSource[dcSource.ColumnName] = drSource[dcSource.ColumnName]
}