or
| public Form1() |
| { |
| InitializeComponent(); |
| //reportViewer1.RefreshReport(); |
| String loc = "C:\\test1.csv"; |
| DataTable k = parseCSV(loc); // return a DataTable |
| this.DataSource = k |
| } |
I have a form using the class to show the report.
1. There is no DataSource for either 'this' or 'reportViewer1'.
2. How can I use DataTable as a source to display.
I believe that I messed up somewhere. Can anyone show me a sample code which tells me how to use DataTable, instead of connecting to a database.
Thanks,
Nick
<telerik:RadWindow ID="DocumentWindow" runat="server" Modal="True" VisibleOnPageLoad="false" Behaviors="Close" AutoSize="false" Height="480" Width = "640"> <ContentTemplate> <asp:UpdatePanel ID="DocumentWindowUpdatePanel" runat="server" UpdateMode="Always"> <ContentTemplate> </ContentTemplate> </asp:UpdatePanel> </ContentTemplate> </telerik:RadWindow>