�
Hi everyone,
     
     I was trying to implement the CanRemove() method of the DataTableCollection class.
     The author has checked for foreign keys and also other possible relations of the 
all the tables in CURRENT dataset.
     1). I guessed the TODO to be � Check for relations with tables in other DataSet.  
But we cannot have relation that spans across DataSets[I tried this, it throws an 
exception].
     2) My second guess � If BeginInit() has been called on any of the table[ 
Irrespective of whether it is involved in any �relation� in current DataSet ], then 
that table cannot be removed from the current DataSet until EndInit() is called.

     And what if the DataTableCollection does not belong to any DataSet.

Can anyone please help me?

Best regards,
Deepak.

Reply via email to