System.Windows.Forms.DataGridViewRowCollection.Add(System.Windows.Forms.DataGridViewRow)

Here are the examples of the csharp api class System.Windows.Forms.DataGridViewRowCollection.Add(System.Windows.Forms.DataGridViewRow) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

42 Examples 7

1. Example

View license
private void PaintPortfolio(Portfolio portfolio)
        {
            try
            {
           /n ..... /n //View Source file for more details /n }

2. Example

View license
private void PaintPeriods()
        {
            if (_grid.InvokeRequired)
            {
                _grid.Invoke(new Action(PaintPeriods));
                return;
            }

            for (int index = 0; index < _deltaPeriods.Periods.Count; index++)
            {
                DataGridViewRow nRow = new DataGridViewRow();

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[0].Value = _deltaPeriods.Periods[index].HourStart;

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[1].Value = _deltaPeriods.Periods[index].HourEnd;

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[2].Value = _deltaPeriods.Periods[index].DeltaStep;

                _grid.Rows.Add(nRow);
            }
        }

3. Example

Project: OsEngine
Source File: PositionUi.xaml.cs
View license
private void CreateMainTable()
        {
            DataGridView newGrid = new DataGridView();

   /n ..... /n //View Source file for more details /n }

4. Example

Project: OsEngine
Source File: PositionUi.xaml.cs
View license
private void PaintOrderTable()
        {
            DataGridView openOrdersGrid = CreateOrderTable();

            for (int i = 0; _position.OpenOrders != null && i < _position.OpenOrders.Count; i++)
            {
                openOrdersGrid.Rows.Add(CreateOrderRow(_position.OpenOrders[i]));
            }
            FormsHostOpenDealGrid.Child = openOrdersGrid;

            DataGridView closeOrdersGrid = CreateOrderTable();

            for (int i = 0; _position.CloseOrders != null && i < _position.CloseOrders.Count; i++)
            {
                closeOrdersGrid.Rows.Add(CreateOrderRow(_position.CloseOrders[i]));
            }
            FormsHostCloseDealGrid.Child = closeOrdersGrid;
        }

5. Example

Project: OsEngine
Source File: PositionUi.xaml.cs
View license
private void PaintTradeTable()
        {
            DataGridView tradesGrid = CreateTradeTable();

            for (int i = 0; _position.OpenOrders != null && i < _position.OpenOrders.Count; i++)
            {
                for (int i2 = 0; _position.OpenOrders[i].MyTrades != null && i2 < _position.OpenOrders[i].MyTrades.Count; i2++)
                {
                    tradesGrid.Rows.Add(CreateTradeRow(_position.OpenOrders[i].MyTrades[i2]));
                }
            }

            for (int i = 0; _position.CloseOrders != null && i < _position.CloseOrders.Count; i++)
            {
                for (int i2 = 0; _position.CloseOrders[i].MyTrades != null && i2 < _position.CloseOrders[i].MyTrades.Count; i2++)
                {
                    tradesGrid.Rows.Add(CreateTradeRow(_position.CloseOrders[i].MyTrades[i2]));
                }
            }


            FormsHostTreid.Child = tradesGrid;

        }

6. Example

View license
private void LoadSecOnTable()
        {
            if (!Host.CheckAccess())
            {
                Host.Dispatcher.Invoke(new Action(LoadSecOnTable));
                return;
            }

            _grid.Rows.Clear();

            if (SecToSubscrible == null ||
                SecToSubscrible.Count == 0)
            {
                return;
            }

            for (int i = 0; SecToSubscrible != null && SecToSubscrible.Count != 0 && i < SecToSubscrible.Count; i++)
            {

                DataGridViewRow nRow = new DataGridViewRow();

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[0].Value = SecToSubscrible[i].Symbol;

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[1].Value = SecToSubscrible[i].Exchange;

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[2].Value = SecToSubscrible[i].SecType;

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[3].Value = SecToSubscrible[i].LocalSymbol;

                nRow.Cells.Add(new DataGridViewTextBoxCell());
                nRow.Cells[4].Value = SecToSubscrible[i].PrimaryExch;

                _grid.Rows.Add(nRow);
            }
        }

7. Example

View license
[SetUp]
		public void SetUp()
		{
			_dgv = new DataGridView();
			_dgv.Columns.Add(new DataGridViewImageColumn());
			_dgv.Rows.Add(new DataGridViewRow());
			_dgv.Rows.Add(new DataGridViewRow());
			_dgv.Rows.Add(new DataGridViewRow());

			using (var dummyForm = new Form())
				_graphics = dummyForm.CreateGraphics();

			_imageList = new ImageList();
			_imageList.Images.Add(ImageKey, new Bitmap(16, 16));

			_paintingEventArgs = new DataGridViewCellPaintingEventArgs(_dgv, _graphics, new Rectangle(0, 0, 1, 1), new Rectangle(0, 0, 1, 1), 0, 0, DataGridViewElementStates.Visible, "value", "value", "", new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle(), new DataGridViewPaintParts());
		}

8. Example

Project: OsEngine
Source File: SecuritiesUi.xaml.cs
View license
private void PaintSecurities(List<Security> securities)
        {
            if(securities ==/n ..... /n //View Source file for more details /n }

9. Example

View license
private void PaintGrid()
        {
            if (_myGridView.InvokeRequired)
            {
       /n ..... /n //View Source file for more details /n }

10. Example

Project: OsEngine
Source File: TesterServerUi.xaml.cs
View license
private void PaintGrid()
        {
            if (_myGridView.InvokeRequired)
            {
       /n ..... /n //View Source file for more details /n }

11. Example

Project: OsEngine
Source File: OptimizerUi.xaml.cs
View license
private void PaintTableOptimizeFazes()
        {
            if (_gridFazes.InvokeRequired)
            {
                _gridFazes.Invoke(new Action(PaintTableOptimizeFazes));
                return;
            }

            _gridFazes.Rows.Clear();

            List<OptimizerFaze> fazes = _master.Fazes;

            if (fazes == null ||
                fazes.Count == 0)
            {
                return;
            }

            for (int i = 0; i < fazes.Count; i++)
            {
                DataGridViewRow row = new DataGridViewRow();

                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[0].Value = i+1;

                DataGridViewTextBoxCell cell = new DataGridViewTextBoxCell();
                cell.Value = fazes[i].TypeFaze;
                row.Cells.Add(cell);

                DataGridViewTextBoxCell cell2 = new DataGridViewTextBoxCell();
                cell2.Value = fazes[i].TimeStart.ToShortDateString();
                row.Cells.Add(cell2);

                DataGridViewTextBoxCell cell3 = new DataGridViewTextBoxCell();
                cell3.Value = fazes[i].TimeEnd.ToShortDateString();
                row.Cells.Add(cell3);

                DataGridViewTextBoxCell cell4 = new DataGridViewTextBoxCell();
                cell4.Value = fazes[i].Days;
                row.Cells.Add(cell4);

                _gridFazes.Rows.Add(row);
            }
        }

12. Example

Project: OsEngine
Source File: OptimizerUi.xaml.cs
View license
private void PaintTableFazes()
        {
            if (_gridFazesEnd.InvokeRequired)
            {
                _gridFazesEnd.Invoke(new Action(PaintTableFazes));
                return;
            }

            _gridFazesEnd.Rows.Clear();

            List<OptimizerFaze> fazes = _master.Fazes;

            if (fazes == null ||
                fazes.Count == 0)
            {
                return;
            }

            for (int i = 0; i < fazes.Count; i++)
            {
                DataGridViewRow row = new DataGridViewRow();

                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[0].Value = i + 1;

                DataGridViewTextBoxCell cell = new DataGridViewTextBoxCell();
                cell.Value = fazes[i].TypeFaze;
                row.Cells.Add(cell);

                DataGridViewTextBoxCell cell2 = new DataGridViewTextBoxCell();
                cell2.Value = fazes[i].TimeStart.ToShortDateString();
                row.Cells.Add(cell2);

                DataGridViewTextBoxCell cell3 = new DataGridViewTextBoxCell();
                cell3.Value = fazes[i].TimeEnd.ToShortDateString();
                row.Cells.Add(cell3);

                DataGridViewTextBoxCell cell4 = new DataGridViewTextBoxCell();
                cell4.Value = fazes[i].Days;
                row.Cells.Add(cell4);

                _gridFazesEnd.Rows.Add(row);
            }
        }

13. Example

Project: OsEngine
Source File: OptimizerUi.xaml.cs
View license
private void PaintTableResults()
        {
            if (_gridResults.InvokeRequired)
            /n ..... /n //View Source file for more details /n }

14. Example

View license
private void ReloadSecurityTable()
        {
            if (_spread.Tabs == null)
            {
                return;
            }

            _grid1.Rows.Clear();

            for (int i = 0; i < _spread.Tabs.Count; i++)
            {
                DataGridViewRow row = new DataGridViewRow();

                row.Cells.Add((new DataGridViewTextBoxCell()));
                row.Cells[0].Value = "A"+i;


                row.Cells.Add(new DataGridViewTextBoxCell());
                if (string.IsNullOrWhiteSpace(_spread.Tabs[i].NamePaper))
                {
                    row.Cells[1].Value = "?????";

                }
                else
                {

                    row.Cells[1].Value = _spread.Tabs[i].NamePaper;

                }
                _grid1.Rows.Add(row);
            }
        }

15. Example

View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

16. Example

View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

17. Example

View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

18. Example

View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

19. Example

View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

20. Example

View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

21. Example

Project: akka-bootcamp
Source File: RepoResultsActor.cs
View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

22. Example

Project: akka-bootcamp
Source File: RepoResultsActor.cs
View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

23. Example

Project: akka-bootcamp
Source File: RepoResultsActor.cs
View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

24. Example

Project: akka-bootcamp
Source File: RepoResultsActor.cs
View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

25. Example

Project: akka-bootcamp
Source File: RepoResultsActor.cs
View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

26. Example

Project: akka-bootcamp
Source File: RepoResultsActor.cs
View license
private void InitialReceives()
        {
            //progress update
            Receive<Github/n ..... /n //View Source file for more details /n }

27. Example

Project: OsEngine
Source File: AlertMaster.cs
View license
private void PaintGridBox()
        {
            try
            {
                if (_isPaint == false)
                {
                    return;
                }

                GridViewBox.Rows.Clear();

                for (int i = 0; _alertArray != null && _alertArray.Count != 0 && i < _alertArray.Count; i++)
                {

                    DataGridViewRow nRow = new DataGridViewRow();

                    nRow.Cells.Add(new DataGridViewTextBoxCell());
                    nRow.Cells[0].Value = i;

                    nRow.Cells.Add(new DataGridViewTextBoxCell());
                    nRow.Cells[1].Value = _alertArray[i].TypeAlert;

                    nRow.Cells.Add(new DataGridViewTextBoxCell());
                    if (_alertArray[i].IsOn)
                    {
                        nRow.Cells[2].Value = "On"; 
                    }
                    else
                    {
                        nRow.Cells[2].Value = "Off"; 
                    }
                   

                    GridViewBox.Rows.Add(nRow);
                }
            }
            catch (Exception error)
            {
                SendNewMessage(error.ToString(), LogMessageType.Error);
            }
        }

28. Example

View license
private void PaintOrders()
        {
            try
            {
                if (_positionHost/n ..... /n //View Source file for more details /n }

29. Example

Project: OsEngine
Source File: OptimizerUi.xaml.cs
View license
private void PaintTableParametrs()
        {
            if (_gridParametrs.InvokeRequired)
        /n ..... /n //View Source file for more details /n }

30. Example

View license
private void PaintTable()
        {
            _grid.Rows.Clear();

            for (int i = 0; i &/n ..... /n //View Source file for more details /n }

31. Example

Project: OsEngine
Source File: ServerMasterUi.xaml.cs
View license
private void RePaintSourceGrid()
        {
            if (_gridSources.InvokeRequired)
            /n ..... /n //View Source file for more details /n }

32. Example

View license
private void PaintTable()
        {
            if (_securitiesNamesGrid.InvokeRequired)
           /n ..... /n //View Source file for more details /n }

33. Example

Project: OsEngine
Source File: OsDataMaster.cs
View license
private void RePaintSourceGrid()
        {
            if (_gridSources.InvokeRequired)
            /n ..... /n //View Source file for more details /n }

34. Example

Project: OsEngine
Source File: OsDataMaster.cs
View license
private void RePaintSetGrid()
        {
            try
            {
                if (_gridset.I/n ..... /n //View Source file for more details /n }

35. Example

Project: OsEngine
Source File: GlobalPosition.cs
View license
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptionsAttribute]
        public voi/n ..... /n //View Source file for more details /n }

36. Example

Project: EPPlus
Source File: ExcelForm.cs
View license
private void InitPackageToUI()
        {
            var ws = _package.Workbook.Worksheets.First();
            var page1 = this.tabControl_Worksheets.Controls[0] as TabPage;
            page1.Text = ws.Name;
            var gridView = GetGrid();
            InitFonts(gridView);
            InitEvents(gridView);
            
            for (var row = 0; row < ws.Dimension.Rows; row++)
            {
                var gridRow = new DataGridViewRow {HeaderCell = {Value = (row + 1).ToString()}};
                for (var col = 0; col < NumberOfColumns; col++)
                {
                    var cell = ws.Cells[row + 1, col + 1];
                    if (cell.Value!=null)
                    {
                        using (var uiCell = new DataGridViewTextBoxCell())
                        {
                            uiCell.Value = cell.Value;
                            gridRow.Cells.Add(uiCell);
                        }
                    }
                }
                gridView.Rows.Add(gridRow);
            }
            gridView.Refresh();
        }

37. Example

Project: EPPlus
Source File: ExcelForm.cs
View license
private void InitPackageToUI()
		{
			var ws = _package.Workbook.Worksheets.First();
			var page1 = this.tabControl_Worksheets.Controls[0] as TabPage;
			page1.Text = ws.Name;
			var gridView = GetGrid();
			InitFonts(gridView);
			InitEvents(gridView);

			for (var row = 0; row < ws.Dimension.Rows; row++)
			{
				var gridRow = new DataGridViewRow { HeaderCell = { Value = (row + 1).ToString() } };
				for (var col = 0; col < NumberOfColumns; col++)
				{
					var cell = ws.Cells[row + 1, col + 1];
					if (cell.Value != null)
					{
						using (var uiCell = new DataGridViewTextBoxCell())
						{
							uiCell.Value = cell.Value;
							gridRow.Cells.Add(uiCell);
						}
					}
				}
				gridView.Rows.Add(gridRow);
			}
			gridView.Refresh();
		}

38. Example

View license
private void FillTableRows()
        {
            foreach (var kvp in VmMappings)
            {
   /n ..... /n //View Source file for more details /n }

39. Example

Project: OsEngine
Source File: GlobalPosition.cs
View license
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
        private void CheckP/n ..... /n //View Source file for more details /n }

40. Example

Project: Tibialyzer
Source File: SelectProcessForm.cs
View license
private void refreshProcesses() {
            processView.Rows.Clear();
            processMap.Clear();
            Process[] currentProcesses = Process.GetProcesses();
            foreach (Process p in currentProcesses) {
                Image image = null;
                if (p.MainWindowTitle != null && p.MainWindowTitle.Length > 0) {
                    try {
                        Icon ico = Icon.ExtractAssociatedIcon(p.MainModule.FileName);
                        image = ico.ToBitmap();
                    } catch {
                    }
                }

                var row = new DataGridViewRow();
                var processIcon = new DataGridViewImageCell();
                processIcon.Value = image != null ? image : StyleManager.GetImage("executable.png");
                var name = new DataGridViewTextBoxCell();
                name.Value = p.ProcessName;
                var title = new DataGridViewTextBoxCell();
                title.Value = p.MainWindowTitle;
                var id = new DataGridViewTextBoxCell();
                id.Value = p.Id;
                row.Cells.Add(processIcon);
                row.Cells.Add(name);
                row.Cells.Add(title);
                row.Cells.Add(id);
                row.Height = 48;
                row.ReadOnly = true;
                processMap.Add(row, p);
                processView.Rows.Add(row);
            }
        }

41. Example

Project: CSharpRenderer
Source File: Program.cs
View license
static void Main()
        {
            m_FrameNumber = 0;
            m_Time = 0.0f;

            /n ..... /n //View Source file for more details /n }

42. Example

Project: QTTabBar
Source File: FileHashComputerForm.cs
View license
public void ShowFileHashForm(string[] paths) {
            if(!fCancellationPending) {
             /n ..... /n //View Source file for more details /n }