General information
Category:
The Mere Mortals .NET Framework
Title:
ClearOnFill parameter for FillDataSet()
I have a business object (inherited from mmBusinessObject) that uses a stored proc in SQL server in it's call to FillDataSet(). This stored proc returns several tables in a dataset. When I issue a subsequent call to FillDataSet, with the clearOnFill parameter as true, the first table in the dataset is cleared just fine, but any other tables in the dataset do not get cleared, they just get appended with the new data.
I can get around this by calling DataSet.Tables.Clear() prior to filling the DataSet, but I assumed that this is what the clearOnFill parameter was used for. Am I doing something wrong or is this something to be addressed in MM? I'm using version 1 of MM.
Thanks,
-Nate
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only