Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi i am trying to get the value of a field in crystal report while clicking a row. I can access the first or second or any other row by
C#
string accode = rpt.Rows[1][0].ToString();
or providing the row index. My problem is how can i get the row index of the currently selected row or clicked row in the report. ie something like
C#
string accode = rpt.Rows[clicked_row_index][1].ToString();

Is there any idea to get the clicked row's index? I searched on Google but nothing found. Waiting for your reply. Thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900