You can get gridview column value in RowDataBound even by following code.
TextBox txtName = (TextBox)e.Row.FindControl("txtName"); //if you have any template column and that have the textbox named txtName
RowCommand event of a gridview is fired when any button is clicked in the gridview
And in rowCommand event, you can get the command name by using
e.CommandName and to get the column value use the following code....
int iIndex=Convert.ToInt32(e.CommandArgument);
GridViewRow gvRow= GV.Rows[iIndex];
string strGVValue=server.HtmlDecode(gvRow.Cells[1].Text);
For more information you can refer http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.rowcommand.aspx
Thanks,
Rajni Shekhar
Sekar.C, if this helps please login to Mark As Answer. | Alert Moderator