How are you populating it via a binding and using a scripting function at the same time?
Ok, I'm going to assume you're using scripting here, not binding, and that your script is switching out the data of your table based on some condition. The easiest way to set a table's data to some static data is to make a dynamic property somewhere that is a DataSet, type in the data in the dataset viewer dialog, and then just set the table's data property to the value of that dynamic property.