Esempio n. 1
0
        public FormTable( )
        {
            InitializeComponent( );

            DS_AMaps          = new DS_ActionMaps( ); // init once for the lifetime of the App
            m_bSrc.DataSource = DS_AMaps;
            m_bSrc.DataMember = "T_Action";

            DGV.AutoGenerateColumns          = true;
            DGV.DataSource                   = m_bSrc;
            DGV.MultiSelect                  = false;
            DGV.Columns["ID_Action"].Visible = false;
            DGV.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader);

            // handle Edits (Blended Col is only allowed to be edited by the user)
            btUpdateFromEdit.Enabled             = chkEditBlend.Checked;
            DGV.Columns["Usr_Binding"].ReadOnly  = true;
            DGV.Columns["Usr_Modifier"].ReadOnly = true;
            DGV.ReadOnly = !chkEditBlend.Checked;
        }