nested - how to access fourth level gridview in asp.net c# -
nested - how to access fourth level gridview in asp.net c# -
i have access "gvdepartments", "gvfuctions" & "gvsections" how can access "gvemployees"?
c# code:
protected void show_hide_employeesgrid(object sender, eventargs e) { imagebutton imgshowhide = (sender imagebutton);
gridviewrow row = (imgshowhide.namingcontainer gridviewrow); if (imgshowhide.commandargument == "show") { row.findcontrol("pnlemployees").visible = true; imgshowhide.commandargument = "hide"; imgshowhide.imageurl = "~/images/minus.png"; string empid = (row.namingcontainer gridview).datakeys[row.rowindex].value.tostring(); gridview gvemployees = row.findcontrol("gvemployees") gridview; bindemployees(empid, gvemployees); //gvemployees. } else { row.findcontrol("pnlemployees").visible = false; imgshowhide.commandargument = "show"; imgshowhide.imageurl = "~/images/plus.png"; } }
asp.net
gridview nested
Comments
Post a Comment