BBBBBBBBBBBBBBBBBBBBBBBB CCCCCCCCCCCCCCCCCCCCCCCc 来自grideview 2的标题2 1111111111111111111111 2222222222222222 3333333333333 来自grideview 3的标题3 1111111111111111111111 2222222222222222 3333333333333HiI am new in c# and crystal Reports using Vs2008I have multiple grideview on one forms and I want print all grideview data on a single form on crystal reports.likeHeading 1 from grideview 1AAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBCCCCCCCCCCCCCCCCCCCCCCCCCcheading 2 from grideview 2111111111111111111111122222222222222223333333333333heading 3 from grideview 3111111111111111111111122222222222222223333333333333推荐答案 1)将您的数据从dataGridview转换为dataTable或DataSet1) convert your data From dataGridview to dataTable or DataSetDataTable dt = (DataTable)dataGridView1.DataSource; 2)通过它dataTable to Report Source2) pass it dataTable to Report SourceDataTable dt = (DataTable)dataGridView1.DataSource; if( dt != null) { if( dt.Rows.Count > 0) { DataSet Ds = new DataSet(); ds.Tables.Add(dt); objRpt.SetDataSource(Ds); } } 这篇关于来自多个grideview的水晶报道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-11 12:51