Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#CrystalReports
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
 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
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 15-Mar-12 0:54am

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

  Print Answers RSS
Your Filters
0 Sergey Alexandrovich Kryukov 422
1 sanket saxena 355
2 Abhinav S 258
3 OriginalGriff 250
4 CPallini 205
0 Sergey Alexandrovich Kryukov 8,704
1 OriginalGriff 5,000
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107

Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 15 Mar 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid