Get Value of BoundField
It is assumed there is a link button(inside gridview) that trigger a row command event. The aim of this code is to get value of first BoundField-type-column in gridview.
protected void gvMain_RowCommand(object sender, GridViewCommandEventArgs e) Â Â Â Â Â Â Â { Â Â Â Â Â Â Â
GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
Literal ltrValue = new Literal(); ltrValue.Text = row.Cells[0].Text;
       }
















