protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // ClienteView.CadastroClientePropertyList() retorna a lista de campos a serem exibidos // no gridCliente. gridCliente.PropertyViewEntities = ClienteView.CadastroClientePropertyList(); // Habilita todos os controles na tela para ediчуo de um novo registro. SetControlEntityEnabled.Execute(this, false); // Alimenta a lista de cliente do gridCliente. gridCliente.RefreshList(); } }