各位帮帮忙啊。先贴出代码。     public XtraReport3()
        {
            InitializeComponent();            //连接数据源,给XtraReport3绑定数据源,包含两个数据表
            SqlConnection con = new SqlConnection("Data Source=localhost;Integrated Security=SSPI;Initial Catalog=测试所用数据库");
            SqlDataAdapter adapter;
            DataSet ds1 = new DataSet();
            con.Open();
            adapter = new SqlDataAdapter("select categoryID as 类别编号,categoryname as 类别名称,description as 类别描述 from categorybiao", con);
            adapter.Fill(ds1, "商品类别表");
            adapter = new SqlDataAdapter("select spID as 商品编号,spname as 商品名称,categoryID as 类别编号,spnumber as 商品库存量,spprice as 商品价格 from spinfobiao", con);
            adapter.Fill(ds1, "商品信息表");
            con.Close();
            this.DataSource = ds1;
            this.DataMember = "商品类别表";            this.xrLabel3.DataBindings.Add("Text", ds1, "商品类别表.类别编号");
            this.xrLabel4.DataBindings.Add("Text", ds1, "商品类别表.类别名称");
            this.xrLabel5.DataBindings.Add("Text", ds1, "商品类别表.类别描述");            //给数据集建立主外键关系
            DataColumn parentColumn = ds1.Tables["商品类别表"].Columns["类别编号"];
            DataColumn childColumn = ds1.Tables["商品信息表"].Columns["类别编号"];
            DataRelation Rl = new DataRelation("Rl", parentColumn, childColumn);
            ds1.Relations.Add(Rl);            //绑定明细表的数据源
            this.DetailReport.DataMember = "Rl";
            this.DetailReport.DataSource = ds1;            this.xrLabel11.DataBindings.Add("Text", ds1, "R1.商品名称");
            this.xrLabel12.DataBindings.Add("Text", ds1, "R1.商品价格");
            this.xrLabel13.DataBindings.Add("Text", ds1, "R1.商品库存量");
            this.xrLabel14.DataBindings.Add("Text", ds1, "R1.商品库存量");
麻烦各位帮我看看,到底哪里有问题,为什么 从表里的商品名称,商品价格,商品库存量  这些在预览是数据显示不出来。
在线等,万分感谢了!!!