Is that a trick question? You just leave off the parameters:
Me.grdHdr.PopulationDataSourceSettings.MethodToExecute = "FillDataTable;"
How do you set up MethodToExecute if there is no parameter for the method being called?
thanks
Geoff Hirst
PopSettings.BusinessObjectType =
Me
But on the first line it gives me an exception and the message on Me.grdHdr is "Object cannot be null". It looks like for some reason my grid is Nothing, but I created it on the form at design time so what else do I need to do to have an instance of it?
The MethodToExecute is a semi-colon-separated list of the method name and parameters... in this case, it would be "FillDataTable;System.String". When we use the same list and populate it with several different data sets, we will set the PopulationDataSourceSettings manually within the code. Other than that, your ListPopulating method is correct, but you'll need to call the Requery() method whenever you want to repopulate the list.
Public
End Class