Author: aammiz | Posted on: 6/15/2008 6:43:45 PM | Views : 478

Hi i am trying to find out the value of a clicked row in a GridView. For example if there are 3 columns   CustID, CustName, CustAddress.
If I am want to know the value of the CustAddress which is column 2 , how would i find it.  the below code i used it is giving me out or range error.
I might be using the wrong event to get the value so any solution.  
 
protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e)
     {

         
       
       Label2.Text=e.Row.Cells[2].Text;
       
    }
...

Go to the complete details ...