Corna 0 Newbie Poster

Hi,

I'm trying to create an objectdatasource in code and then bind a gridview.

ObjectDataSource objDS = new ObjectDataSource();
objDS.DataObjectTypeName = "VeriWeb_Administration.BusinessObjects.Provider";
objDS.TypeName = "VeriWeb_Administration.BusinessObjects.Providers";
objDS.SelectMethod = "PopulateProviders()";
objDS.UpdateMethod = "Update(Provider item)";
objDS.ID = "ObjectDataSource1";

I get the following error on gridview.databind() :
The Select operation is not supported by ObjectDataSource 'ObjectDataSource1' unless the SelectMethod is specified.

Please help