public override global::System.Data.DataTable Clone()
            {
                ClienteDataTable cln = ((ClienteDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
 private void InitClass()
 {
     this.DataSetName             = "ClienteDataSet";
     this.Prefix                  = "";
     this.Namespace               = "http://tempuri.org/ClienteDataSet.xsd";
     this.EnforceConstraints      = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableCliente            = new ClienteDataTable();
     base.Tables.Add(this.tableCliente);
 }
 internal void InitVars(bool initTable)
 {
     this.tableCliente = ((ClienteDataTable)(base.Tables["Cliente"]));
     if ((initTable == true))
     {
         if ((this.tableCliente != null))
         {
             this.tableCliente.InitVars();
         }
     }
 }
        public void TraerClientes(DataGridView DgvMostrar)
        {
            DgvMostrar.Rows.Clear();
            ClienteTableAdapter adapter = new ClienteTableAdapter();
            ClienteDataTable    mitabla = adapter.GetData();

            for (int i = 0; i < mitabla.Count; i++)
            {
                ClienteRow misRegistro = (ClienteRow)mitabla.Rows[i];
                DgvMostrar.Rows.Add(
                    null,
                    misRegistro.IdCliente,
                    misRegistro.Nombre,
                    misRegistro.Ci,
                    misRegistro.Telefono,
                    misRegistro.FechaNacimiento);
            }
        }
 internal ClienteRow(global::System.Data.DataRowBuilder rb) :
     base(rb)
 {
     this.tableCliente = ((ClienteDataTable)(this.Table));
 }
Exemple #6
0
 public FCliente(ClienteDataTable cTable)
 {
     InitializeComponent();
     dataGridView1.DataSource = cTable;
 }