I am having an issue with hidden cells when a PageIndexChanging event is fired in a gridview.
On the page_load I am setting the visibility of an edit button in a cell of a gridview to true or false depending on a users credentials.
Everything works as intended when the page is first loaded. When I click to a different page index the edit button is visible in all cells when it shouldn't be. The edit button is then visible in all cells even if I navigate back to the first page.
Here is the pageindexchanging event:
protected void GridView_EmployeeList_PageIndexChanging(object sender, GridViewPageEventArgs e)
GridView_EmployeeList.PageIndex = e.NewPageIndex;
Here is some code from the page_load:
protected void Page_Load(object sender, EventArgs e)
foreach (GridViewRow row in GridView_EmployeeList.Rows)
If(row.Cells == "Manager")
View Complete Post