//--------------------------------------------------------------
        public void Initialiser(
            CGridDataCache datas,
            int nColumnIndex,
            IWndIncluableDansDataGrid wndIncluable,
            IFournisseurProprietesDynamiques fournisseur)
        {
            m_datas        = datas;
            m_nColumnIndex = nColumnIndex;
            m_wndSource    = wndIncluable;
            m_fournisseur  = fournisseur;
            if (m_wndEdition != null && m_wndEdition.Control != null)
            {
                m_wndEdition.Control.Visible = false;
                Controls.Remove(m_wndEdition.Control);
                m_wndEdition.Control.Dispose();
                m_wndEdition = null;
            }


            InitializeComponent();


            m_createurFormulaires = new CCreateur2iFormulaireV2();
            m_wndEdition          = m_createurFormulaires.CreateControle((C2iWnd)m_wndSource, this, m_fournisseur) as IControlIncluableDansDataGrid;
            if (m_wndEdition != null && m_wndEdition.Control != null)
            {
                m_wndEdition.Control.Dock = DockStyle.Fill;
            }
            IControlIncluableDansDataGrid ctrlDg = m_wndEdition as IControlIncluableDansDataGrid;

            if (ctrlDg != null)
            {
                ctrlDg.DataGrid = m_dataGridView;
            }
        }
Ejemplo n.º 2
0
 public CDataGridViewCustomCellFor2iWnd(
     CGridDataCache datas,
     C2iWndDataGridColumn wndCol,
     int nColumnIndex,
     IWndIncluableDansDataGrid wndAssociee,
     IFournisseurProprietesDynamiques fournisseur)
     : base()
 {
     m_datas        = datas;
     m_nColumnIndex = nColumnIndex;
     m_2iWndForGrid = wndAssociee;
     m_fournisseur  = fournisseur;
     m_wndCol       = wndCol;
 }