Hi
Message = "Data source is an invalid type. It must be either an IListSource, IEnumerable, or IDataSource."
SAPbobsCOM.SBObob obj = _oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge); SAPbobsCOM.Recordset rs = _oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset); rs = obj.GetBPList(SAPbobsCOM.BoCardTypes.cCustomer); int count = rs.RecordCount; rs.DoQuery("SELECT CardCode,CardName FROM OCRD"); grdBP.DataSource = rs; grdBP.DataBind();
Thanks