Quantcast
Viewing all articles
Browse latest Browse all 12583

First time rdlc is not showing data

hi,

I am using rdlc report in c# windows forms i have successfully passed the parameters and filtered data on rdlc report but the problem is first time when i run the report it only shows table header not complete table with complete data but as i filter the report using combobox now according to search it shows data.

I want to display all data for first time when i do not use combobox.

Here is my code,

  private void Form_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'CS.student' table. You can move, or remove it, as needed.
            //this.studentTableAdapter.Fill(this.CS.student);
            this.studentTableAdapter.Fill(this.CS.student);
            // TODO: This line of code loads data into the 'CR.student1' table. You can move, or remove it, as needed.
           

            this.reportViewer1.RefreshReport();
           
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ReportParameter[] parms = new ReportParameter[1];
            parms[0] = new ReportParameter("Name", comboBox1.Text.ToString());
            //parms[1] = new ReportParameter("ReportParameter2", comboBox2.Text.ToString());
            this.reportViewer1.LocalReport.SetParameters(parms);
            this.reportViewer1.RefreshReport();
        }


Viewing all articles
Browse latest Browse all 12583

Trending Articles