public void CreateInputControls(SQLTable pPrevTable,
                                        Column fcol, 
                                        string sParentKeys, 
                                        ref List<usrc_InputControl> 
                                        inpCtrlList, 
                                        Object pParentWindow, 
                                        Control pControl,
                                        DBTableControl xDBTables,
                                        bool bReadOnly,
                                        NavigationButtons.Navigation xnav)
        {
            int iCol = 0;
            int iCount = Column.Count();
            this.pParentTable = pPrevTable;
            this.myGroupBox = new usrc_myGroupBox();
            this.myGroupBox.SelectionButtonVisible = m_SelectionButtonVisible;
            this.myGroupBox.Init(this, fcol, sParentKeys, pParentWindow, pControl, xDBTables, bReadOnly,xnav);

            if (pParentWindow.GetType() == typeof(myPanel))
            {
                this.myGroupBox.Left = 5;
                this.myGroupBox.Top = 5;
                Panel pnl = (Panel)pParentWindow;
                pnl.Controls.Add(myGroupBox);
            }
            else if (pParentWindow.GetType() == typeof(usrc_myGroupBox))
            {
                usrc_myGroupBox pParentMyGroupBox = (usrc_myGroupBox)pParentWindow;
                MyControl mctrl = new MyControl(this.myGroupBox);
                pParentMyGroupBox.controls.Add(mctrl);
            }

            for (iCol = 0; iCol < iCount; iCol++)
            {
                Column col = Column[iCol];
                if (!col.IsIdentity)
                {
                    if (col.fKey != null)
                    {
                        string sKey;
                        bool xbReadOnly = bReadOnly;

                        if (col.Style == CodeTables.Column.eStyle.ReadOnlyTable)
                        {
                            xbReadOnly = true;
                        }

                        sKey = sParentKeys + "*" + col.fKey.refInListOfTables.TableName + ">";
                        col.fKey.fTable.CreateInputControls(this, col, sKey, ref inpCtrlList, this.myGroupBox, pControl, xDBTables, xbReadOnly,xnav);
                    }
                    else
                    {
                        string sImportExportLine;
                        usrc_InputControl inpCtrl;
                        if (col.IsNumber())
                        {
                            sImportExportLine = sParentKeys + col.Name + ",";
                            inpCtrl = new usrc_InputControl();
                            inpCtrl.Init(this, col, inpCtrlList, sImportExportLine, true,bReadOnly);
                            if (!bReadOnly)
                            {
                                inpCtrl.ObjectChanged += new usrc_InputControl.delegate_ObjectChanged(inpCtrl_ObjectChanged);
                            }
                            col.InputControl = inpCtrl;
                        }
                        else
                        {
                            sImportExportLine = sParentKeys + col.Name + ",";
                            inpCtrl = new usrc_InputControl();
                            inpCtrl.Init(this, col, inpCtrlList, sImportExportLine, false,bReadOnly);
                            if (!bReadOnly)
                            {
                                inpCtrl.ObjectChanged += new usrc_InputControl.delegate_ObjectChanged(inpCtrl_ObjectChanged);
                            }
                            col.InputControl = inpCtrl;
                        }
                        MyControl mctrl = new MyControl(inpCtrl);
                        this.myGroupBox.controls.Add(mctrl);
                    }
                }
            }

            if (pPrevTable!=null)
            {
                if (pParentWindow is usrc_myGroupBox)
                {
                    if (!bReadOnly)
                    {
                        this.myGroupBox.Unique_parameter_exist += myGroupBox_Unique_parameter_exist;
                        this.myGroupBox.bUnique_parameter_exist = true;
                        this.myGroupBox.RowReferenceFromTable_Check_NoChangeToOther += myGroupBox_RowReferenceFromTable_Check_NoChangeToOther;
                        this.myGroupBox.usrc_myGroupBox_IndexChanged += new usrc_myGroupBox.delegate_IndexChanged(myGroupBox_usrc_myGroupBox_IndexChanged);
                        this.myGroupBox.usrc_InputControl_ObjectChanged += new usrc_myGroupBox.delegate_ObjectChanged(myGroupBox_usrc_InputControl_ObjectChanged);
                    }
                }
                //if (pParentWindow is Panel)
                //{
                //    if (!bReadOnly)
                //    {
                //        this.myGroupBox.Unique_parameter_exist += myGroupBox_Unique_parameter_exist;
                //        this.myGroupBox.bUnique_parameter_exist = true;
                //        this.myGroupBox.RowReferenceFromTable_Check_NoChangeToOther += myGroupBox_RowReferenceFromTable_Check_NoChangeToOther;
                //        //this.myGroupBox.usrc_myGroupBox_IndexChanged += new usrc_myGroupBox.delegate_IndexChanged(myGroupBox_usrc_myGroupBox_IndexChanged);
                //        //this.myGroupBox.usrc_InputControl_ObjectChanged += new usrc_myGroupBox.delegate_ObjectChanged(myGroupBox_usrc_InputControl_ObjectChanged);
                //    }
                //}
            }
        }