Ejemplo n.º 1
0
        public WorkSheet1()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            grid.FixedRows    = 1;
            grid.FixedColumns = 1;
            grid.Redim(10, 5);
            m_Data = new string[10, 5];


            m_Cell = new WorkSheetCell(this);

            // (m_Cell.VisualModel as SourceGrid2.VisualModels.Common).BorderColor = Color.Red;
            m_Cell.BindToGrid(grid);



            // grid.ScrollablePanel.BackColor = Color.Transparent;


            //  grid.Columns[0].Width = 0;
            //   grid.Rows[0].Height = 0;



            grid.SizeChanged += new EventHandler(grid_SizeChanged);

            //m_Column = new WorkSheetColumn();
            //m_Column.BindToGrid(grid);
            //m_Row = new WorkSheetRow();
            //	m_Row.BindToGrid(grid);
            //	m_Header = new WorkSheetHeader();
            //	m_Header.BindToGrid(grid);
        }
Ejemplo n.º 2
0
        public WorkSheet()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            grid.FixedRows    = 1;
            grid.FixedColumns = 1;
            grid.Redim(1000, 1000);
            m_Data = new string[1000, 1000];

            m_Cell = new WorkSheetCell(this);
            m_Cell.BindToGrid(grid);
            m_Column = new WorkSheetColumn();
            m_Column.BindToGrid(grid);
            m_Row = new WorkSheetRow();
            m_Row.BindToGrid(grid);
            m_Header = new WorkSheetHeader();
            m_Header.BindToGrid(grid);
        }