﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » XtraReport1.DataSource of Devexpress and assign the filed into XtraReport ??</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 04:12:56 GMT</lastBuildDate><ttl>20</ttl><item><title>XtraReport1.DataSource of Devexpress and assign the filed into XtraReport ??</title><link>http://forum.strataframe.net/FindPost32646.aspx</link><description>&lt;div&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;After you&lt;/span&gt; &lt;span class="hps"&gt;assign the&lt;/span&gt; &lt;span class="hps"&gt;DataSource&lt;/span&gt; &lt;span class="hps"&gt;to&lt;/span&gt; &lt;span class="hps"&gt;the Report&lt;/span&gt;, &lt;span class="hps"&gt;I&lt;/span&gt; &lt;span class="hps"&gt;want to&lt;/span&gt; &lt;span class="hps"&gt;assign&lt;/span&gt; &lt;span class="hps"&gt;to&lt;/span&gt; &lt;span class="hps"&gt;the&lt;/span&gt; &lt;span class="hps"&gt;label&lt;/span&gt;, &lt;span class="hps"&gt;textbox&lt;/span&gt;, xrTableCell1,&lt;span class="hps"&gt;...&lt;/span&gt;&amp;nbsp;&lt;span class="hps"&gt;Report&lt;/span&gt; &lt;span class="hps"&gt;should I do&lt;/span&gt;&lt;span class=""&gt;? or I want to DataBinding,&lt;/span&gt;&amp;nbsp;&lt;span class="hps"&gt;currently&lt;/span&gt; &lt;span class="hps"&gt;running&lt;/span&gt; &lt;span class="hps"&gt;it&lt;/span&gt; &lt;span class="hps"&gt;does not&lt;/span&gt; &lt;span class="hps"&gt;appear&lt;/span&gt; &lt;span class="hps"&gt;at all&lt;/span&gt; &lt;span class="hps"&gt;records&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;div&gt;[CODE]&lt;div&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp; //&amp;nbsp;&lt;/span&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;After&lt;/span&gt; &lt;span class="hps"&gt;successful&lt;/span&gt; &lt;span class="hps"&gt;connection&lt;/span&gt; &lt;span class="hps"&gt;Northwind&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Create an empty report.&lt;div&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;XtraReport1 report = new XtraReport1();&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp; string sql = "select * from Customers";&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp; DataSet ds = new DataSet();&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp; SqlDataAdapter da = new SqlDataAdapter(sql, cnn);&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp; da.Fill(ds);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px;"&gt;report&lt;/span&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;.DataSource = ds;&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px;"&gt;report&lt;/span&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;.DataAdapter = da;&amp;nbsp;&lt;/span&gt;&lt;br style="margin: 0px; padding: 0px; color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px;"&gt;report&lt;/span&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;.DataMember = Customers; // Table Customers of Northwind&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&lt;br/&gt;&lt;/span&gt;&lt;div&gt;&lt;span style="color: rgb(46, 139, 87); font-family: Monaco, 'Andale Mono', 'Courier New', Courier, mono; line-height: 15.210000038146973px; background-color: rgb(255, 255, 255);"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;font color="#2e8b57" face="Monaco, Andale Mono, Courier New, Courier, mono"&gt;&lt;span style="line-height: 15.210000038146973px;"&gt;report.ShowPreview();&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;font color="#2e8b57" face="Monaco, Andale Mono, Courier New, Courier, mono"&gt;&lt;span style="line-height: 15.210000038146973px;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/font&gt;&lt;div&gt;[/CODE]</description><pubDate>Mon, 11 Aug 2014 11:38:13 GMT</pubDate><dc:creator>Dong Trien Lam</dc:creator></item><item><title>RE: XtraReport1.DataSource of Devexpress and assign the filed into XtraReport ??</title><link>http://forum.strataframe.net/FindPost32648.aspx</link><description>Hi Dong,&lt;br/&gt;&lt;br/&gt;You may want to use a StrataFrame Business Binding Source (BBS) as your report source, this way you can map the business object (BO) properties in the BBS in your report labels or fields object then you need to fill the BO with your data and that will work.</description><pubDate>Mon, 11 Aug 2014 11:38:13 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>