protected void NewItem_Command(object sender, CommandEventArgs e) { MediaFormView.ChangeMode(FormViewMode.Insert); // getStatus((DropDownList)MediaFormView.FindControl("DropDownListStatus")); gridViewPanel.Visible = false; }