Beispiel #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            //Create Headers Informations
            grid.FixedRows    = 1;
            grid.RowsCount    = 1;
            grid.ColumnsCount = 4;
            grid[0, 0]        = new SourceGrid3.Cells.Real.ColumnHeader("ID");
            grid[0, 1]        = new SourceGrid3.Cells.Real.ColumnHeader("Name");
            grid[0, 2]        = new SourceGrid3.Cells.Real.ColumnHeader("Virtual Memory Size");
            grid[0, 3]        = new SourceGrid3.Cells.Real.ColumnHeader("Physical Memory Size");
            grid.AutoSize();

            //I have used a Thread just to show how to syncronize a Windows Forms control with a multithread event source.
            mThread = new System.Threading.Thread(new System.Threading.ThreadStart(DoAsyncWork));
            mThread.Start();
        }
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad (e);

			//Create Headers Informations
			grid.FixedRows = 1;
			grid.RowsCount = 1;
			grid.ColumnsCount = 4;
			grid[0, 0] = new SourceGrid3.Cells.Real.ColumnHeader("ID");
			grid[0, 1] = new SourceGrid3.Cells.Real.ColumnHeader("Name");
			grid[0, 2] = new SourceGrid3.Cells.Real.ColumnHeader("Virtual Memory Size");
			grid[0, 3] = new SourceGrid3.Cells.Real.ColumnHeader("Physical Memory Size");
			grid.AutoSize();

			//I have used a Thread just to show how to syncronize a Windows Forms control with a multithread event source.
			mThread = new System.Threading.Thread(new System.Threading.ThreadStart(DoAsyncWork));
			mThread.Start();
		}