I bound gridview with databse..property Checkbox -true .
I have three columns roll,name ,roll.

I want to get the cell value of second column whose corresponding checkboxes are checked...

on Button1_Click, in varable bchecked,checkboxes status are coming..I want to get the cell value..Plz help me out..

SOURCE TAB
Code:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">   
                  
   <Columns>      
                 
<asp:TemplateField >  

    <ItemTemplate >     
              
     <asp:CheckBox ID ="chk" runat ="server"  />       
  
               </ItemTemplate>    
            
        </asp:TemplateField>     
        
   <asp:BoundField HeaderText="Roll" DataField ="roll" />            
            
   <asp:BoundField HeaderText="Name"  DataField ="name"/>                       

<asp:BoundField HeaderText="Marks" DataField ="marks"/>             

           </Columns>    
              
  </asp:GridView>

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"> 

<Columns>
[code]
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack
{

query = "Select * from Information";
conn.Open();
cmd = new SqlCommand(query, conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
conn.Close();
}
}



Code:
    protected void Button1_Click(object sender, EventArgs e)
    {
        string sName;
        bool bchecked;

        for (int i = 0; i < this.GridView1.Rows.Count; i++)
        {
            bchecked = ((CheckBox)GridView1.Rows[i].FindControl("chk")).Checked;
            if (bchecked == true)
            {
                Label lblName = (Label)GridView1.FindControl("Name") ;
                sName = lblName.ToString ;
               
            }

           
        }
        

    }