コード例 #1
0
        private void gridCargo_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var id = getID();

            var cargo = CCargo.getCargoId(id);

            txtNombCargo.Text    = cargo.Nombre;
            txtDescripCargo.Text = cargo.Descripcion;
        }
コード例 #2
0
        private void gridCargo_RowStateChanged(object sender, DataGridViewRowStateChangedEventArgs e)
        {
            if (e.StateChanged != DataGridViewElementStates.Selected)
            {
                return;
            }
            var id = getID();

            var cargo = CCargo.getCargoId(id);

            txtNombCargo.Text    = cargo.Nombre;
            txtDescripCargo.Text = cargo.Descripcion;
        }