private void bindGrid(Object sender, CommandEventArgs e) { string dept = e.CommandArgument.ToString(); if (dept == "100") { PTTB.Visible = true; PTT.Visible = false; GC.Visible = false; CS.Visible = false; TCS.Visible = false; PTTB.BindPPLDetail(); } else if (dept == "200") { PTTB.Visible = false; PTT.Visible = true; GC.Visible = false; CS.Visible = false; TCS.Visible = false; PTT.BindPPLDetail(); } else if (dept == "300") { PTTB.Visible = false; PTT.Visible = false; GC.Visible = true; CS.Visible = false; TCS.Visible = false; GC.BindPPLDetail(); } else if (dept == "400") { PTTB.Visible = false; PTT.Visible = false; GC.Visible = false; CS.Visible = true; TCS.Visible = false; CS.BindPPLDetail(); } else if (dept == "500") { PTTB.Visible = false; PTT.Visible = false; GC.Visible = false; CS.Visible = false; TCS.Visible = true; TCS.BindPPLDetail(); } else if (dept == "600") { PTTB.Visible = false; PTT.Visible = false; GC.Visible = false; CS.Visible = false; TCS.Visible = false; } }