protected void GridView1_OnRowCommand(object sender, GridViewCommandEventArgs e)
{
int index = Convert.ToInt32(e.CommandArgument);
GridViewRow row = GridView1.Rows[index];
k = row.Cells[0].ToString();
Label1.Text = k;
}
I want to get a value of a particular cell in the selected row.So I tried with this but this is giving very odd result the label printing the below text
System.Web.UI.WebControls.DataControlFieldCell.
Can anybody tell me how to solve my problem.