protected void OnBtnBuscarClicked(object sender, EventArgs e) { this.tvUsuarios.Model = dtu.buscarEmp(this.txtBuscar.Text); string[] titulos = { "ID", "NOMBRE", "APELLIDO", "USUARIO" }; for (int i = 0; i < titulos.Length; i++) { this.tvUsuarios.AppendColumn(titulos[i], new CellRendererText(), "text", i); } }
protected void OnTxtBuscarChanged(object sender, EventArgs e) { this.tvUsuarios.Model = dtu.buscarEmp(this.txtBuscar.Text); }