void ObjectDataSourceInitialization()
        {
            ObjectDataSource objds = new ObjectDataSource();

            objds.Name = "ObjectDataSource1";
            objds.BeginUpdate();
            objds.DataMember = "Items";
            objds.DataSource = typeof(BusinessObject);
            objds.EndUpdate();
            //this line of code allows passing a parameter value to a parametrized constructor of an underlying data source object
            var parameter = new DevExpress.DataAccess.ObjectBinding.Parameter("p1", typeof(int), 3);

            objds.Constructor = new DevExpress.DataAccess.ObjectBinding.ObjectConstructorInfo(parameter);
        }
        void ObjectDataSourceInitialization()
        {
            DevExpress.DataAccess.ObjectBinding.ObjectDataSource objds = new DevExpress.DataAccess.ObjectBinding.ObjectDataSource();
            objds.Name = "ObjectDataSource1";

            objds.BeginUpdate();
            objds.DataMember = "GetData";
            objds.DataSource = typeof(SampleItem);
            objds.EndUpdate();

            var parameter = new DevExpress.DataAccess.ObjectBinding.Parameter("value", typeof(int), 3);

            objds.Parameters.Add(parameter);
            //this line of code is required to obtain the data source object schema
            objds.Fill();
        }