Get Row and column index when a value is selected in a GridView

Murray Brown
Murray Brown used Ask the Experts™

In I have a GridView control that I used to load data from multiple data sources.
When the user selects something in the GridView I want to get the selected row index as well as the column index.
How do I do this in a raw GridView that has no template columns?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chief Technology Ninja
Distinguished Expert 2018
Hi Murray,

Selected Row Index can be easily found by adding a checkbox in front of the row.

BUT columns? that too without adding a checkbox (i.e. template column)? First of all, how will user even select a column? without a checkbox(even if it is a client side one and not a template one)? Could you please clarify the idea a bit.

Murray Developer



Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial