Selected cell in Gridview

G

Guest

Hi,
I can return the rowindex using SelectedRow or SelectedIndex
But, how do I get my code to return the cell or column index of a selected
row in my gridview?


thanx
 
R

Riki

Mike said:
Hi,
I can return the rowindex using SelectedRow or SelectedIndex
But, how do I get my code to return the cell or column index of a
selected row in my gridview?

How would you select that cell or column?
 
G

Guest

Let's say I have a column of type TemplateField that have a link button or
CommandField and I want when clicking on that a cetrain cell in that column
that I will be able to return the cell or the column index (getting the
rowindex is easy but how can I get the column index of a selectedrow!?).
because in the code behind my gridview I do have some code in the
GridView_SelectedIndexChanged that do something according the selected cell
or column and need this to be done in the GridView_SelectedIndexChanged.


Thanx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top