I need multiple columns values of a single record from gridview_RowCommaand() event using command argument + command Name or RowDeleting event() using DATAKEYNAMES .I tryed following but no solution .... :( I selected second record from gridview..
if (e.CommandName == "Deleteinfo")
{ for (int i = 0; i < gridSurveyQuestion.Rows.Count; i++)
{ //this below code return the correct value = 5
ImageButton imgB = (ImageButton)gridSurveyQuestion.Rows[i].FindControl("btnGridDelte");
_squestion.surveyquestionID = Convert.ToInt16(e.CommandArgument.ToString());
//this below code return last record's column value retured by code =11 which i dont need actual value =9
HiddenField hdquestion = (HiddenField)gridSurveyQuestion.Rows[i].FindControl("hdquestionID");
_sques ...
Go to the complete details ...