Selected cell in Gridview

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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?
 
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
 
Back
Top