I am accessing a TextField within a GridView. It shouldn't pick the updated text, instead, it takes the original text only. I am using two GridViews within the same page in different tabs. Will that make them affect each other?
But the GridView is giving me an exception:
An exception of type 'System.NullReferenceException' occurred in OnlineExamDesign.dll but was not handled in user code. Additional information: Object reference not set to an instance of an object.
else if (e.CommandName == "UpdateRowTeam")
{
DomainTeam updateObj = new DomainTeam();
int rowIndex = ((GridViewRow)((LinkButton)e.CommandSource).NamingContainer).RowIndex;
int index = Convert.ToInt32(e.CommandArgument);
string name = ((TextBox)domainGrid.Rows[rowIndex].FindControl("txtchangeTeamName")).Text;
updateObj.actionTeam(index,name,"TeamUpdate");
teamGrid.EditIndex = -1;
getTeamGridData();
}