none
click event in report viewer local report RRS feed

  • Question

  • Hi
    I am using VS2008 using C# and Microsoft report viewer control, is it possible to create link label inside the local report.
    For eg: i take the Name,Amount columns from Sql into my report.
    Sno Name Amount
    1     XXX    1000 -->click on this 1000
    2     yyy     2000 .

    If i click the amount 1000 then another one report viewer to open and show the details of the particular amount
    eg:
    FromDate      Todate            Name   Amount
    05-Dec-2009  05-Dec-2009   AAA      500
    05-Dec-2009  05-Dec-2009   BBB      500
                                              Total     1000

    Is it possible click event on reportviewer column.
    If yes help me anyone.

    Thanks
    A.Shajahan

    Best Wishes Shajusha
    Saturday, December 5, 2009 4:16 AM

All replies

  • Hi,
     yes it is possible. follow following steps:
         Step1: create one more detail reports called as Details.rpt with required parameters.
        Step2: on master reports i.e:
                         1     XXX    1000 -->click on this 1000
        2     yyy     2000 .
                 open the property window of the textbox for that you are showing 1000, 2000 etc. and goto action and here select "goto report" option and choose details.rpt and set required parameters that are required for details.rpt.



    Hope it will help you...

    Aftab Ansari
    Monday, December 7, 2009 6:58 AM
  • hi Ansari,

                  I tried by above mention method, but i cant the result. could you explain more.


    Thanks

    Best Wishes Shajusha
    Monday, December 7, 2009 9:50 AM
  • Hi,
     Follow following steps:
         Step1: create one more detail reports called as Details.rpt with required parameters.
        Step2: on master reports i.e:
                         1     XXX    1000 -->click on this 1000
        2     yyy     2000 .
               Right click  on the textbox( i.e. bind to 1000, 2000 etc. type of values) and choose action and here select "goto report" option and choose details.rpt as report name and below set required parameters that are required for details.rpt.

    Aftab Ansari
    Tuesday, December 8, 2009 7:58 AM