only My site

Saturday, May 10, 2008

DataSet - ADD, Remove & Contains

foreach ( DataTable dtt in DScoll.returnValue.Tables )
{
if ( dsDataCache.Tables.Contains( dtt.TableName ) )
dsDataCache.Tables.Remove( dtt.TableName );

dsDataCache.Tables.Add( dtt.Copy() );
}

No comments: