System.Windows.Forms.DataGridViewCellCollection.Add(System.Windows.Forms.DataGridViewCell)

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

63 Examples 7

1. Example

Project: OsEngine
Source File: PositionUi.xaml.cs
View license
private DataGridViewRow GetRow(Position position)
        {
            if (position == null)
      /n ..... /n //View Source file for more details /n }

2. Example

Project: OsEngine
Source File: PositionUi.xaml.cs
View license
private DataGridViewRow CreateOrderRow(Order order)
        {
            if (order == null)
       /n ..... /n //View Source file for more details /n }

3. Example

Project: OsEngine
Source File: PositionUi.xaml.cs
View license
private DataGridViewRow CreateTradeRow(MyTrade trade)
        {
            if (trade == null)
            {
                return null;
            }

            DataGridViewCellStyle styleDefolt = new DataGridViewCellStyle();

            styleDefolt.BackColor = Color.WhiteSmoke;
            styleDefolt.SelectionBackColor = Color.WhiteSmoke;
            styleDefolt.SelectionForeColor = Color.Black;

            DataGridViewRow nRow = new DataGridViewRow();
            nRow.DefaultCellStyle = styleDefolt;

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

            nRow.Cells.Add(new DataGridViewTextBoxCell());
            nRow.Cells[1].Value = trade.NumberOrderParent;

            nRow.Cells.Add(new DataGridViewTextBoxCell());
            nRow.Cells[2].Value = trade.SecurityNameCode;

            nRow.Cells.Add(new DataGridViewTextBoxCell());
            nRow.Cells[3].Value = trade.Time;

            nRow.Cells.Add(new DataGridViewTextBoxCell());
            nRow.Cells[4].Value = trade.Price;

            nRow.Cells.Add(new DataGridViewTextBoxCell());
            nRow.Cells[5].Value = trade.Volume;

            nRow.Cells.Add(new DataGridViewTextBoxCell());
            nRow.Cells[6].Value = trade.Side;

            return nRow;
        }

4. Example

Project: fdotoolbox
Source File: FdoBulkUpdateCtl.cs
View license
public void AddGeometricProperty(GeometricPropertyDefinition geomDef)
        {
            if (geomDef.ReadOnly)
                return;

            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = geomDef.Name;
            nameCell.Tag = geomDef;

            DataGridViewCell valueCell = new DataGridViewTextBoxCell();
            valueCell.ToolTipText = "Enter the FGF or WKB geometry text";

            DataGridViewCheckBoxCell ecell = new DataGridViewCheckBoxCell(false);
            ecell.Value = true;
            DataGridViewCheckBoxCell ncell = new DataGridViewCheckBoxCell(false);
            ncell.Value = false;

            row.Cells.Add(ecell);
            row.Cells.Add(ncell);
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            nameCell.ReadOnly = true;

            grdProperties.Rows.Add(row);

        }

5. Example

Project: fdotoolbox
Source File: FdoConnectCtl.cs
View license
public void AddEnumerableProperty(string name, string defaultValue, string[] values)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewComboBoxCell valueCell = new DataGridViewComboBoxCell();
            valueCell.DataSource = values;
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdProperties.Rows.Add(row);
        }

6. Example

Project: fdotoolbox
Source File: FdoCreateDataStoreCtl.cs
View license
public void AddEnumerableConnectProperty(string name, string defaultValue, string[] values)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewComboBoxCell valueCell = new DataGridViewComboBoxCell();
            valueCell.DataSource = values;
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdConnectionProperties.Rows.Add(row);
        }

7. Example

Project: fdotoolbox
Source File: FdoCreateDataStoreCtl.cs
View license
public void AddDataStoreProperty(DictionaryProperty p)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = p.LocalizedName;

            DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell();
            if (p.IsFile || p.IsPath)
            {
                valueCell.ContextMenuStrip = ctxHelper;
                valueCell.ToolTipText = "Right click for helpful options";
            }
            valueCell.Value = p.DefaultValue;

            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdDataStoreProperties.Rows.Add(row);
        }

8. Example

Project: fdotoolbox
Source File: FdoCreateDataStoreCtl.cs
View license
public void AddEnumerableDataStoreProperty(string name, string defaultValue, string[] values)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewComboBoxCell valueCell = new DataGridViewComboBoxCell();
            valueCell.DataSource = values;
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdDataStoreProperties.Rows.Add(row);
        }

9. Example

Project: fdotoolbox
Source File: DictionaryDialog.cs
View license
private DataGridViewRow AddOptionalEnumerableProperty(string name, string defaultValue, IEnumerable<string> values)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewComboBoxCell valueCell = new DataGridViewComboBoxCell();
            valueCell.DataSource = values;
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);
            grdProperties.Rows.Add(row);
            return row;
        }

10. Example

Project: fdotoolbox
Source File: DictionaryDialog.cs
View license
private DataGridViewRow AddProperty(string name, string defaultValue)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell();
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdProperties.Rows.Add(row);
            return row;
        }

11. Example

View license
private DataGridViewRow AddOptionalEnumerableProperty(string name, string defaultValue, IEnumerable<string> values)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewComboBoxCell valueCell = new DataGridViewComboBoxCell();
            valueCell.DataSource = values;
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);
            grdPendingProperties.Rows.Add(row);
            return row;
        }

12. Example

View license
private DataGridViewRow AddProperty(string name, string defaultValue)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = name;
            DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell();
            valueCell.Value = defaultValue;
            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdPendingProperties.Rows.Add(row);
            return row;
        }

13. Example

Project: mysqltuner
Source File: FormMain.cs
View license
public override void PrintMessage(Status messageStatus, string message)
        {
            // See/n ..... /n //View Source file for more details /n }

14. Example

Project: LiteDevelop
Source File: ErrorControl.cs
View license
public void SetBuildErrors(IEnumerable<BuildError> errors)
        {
            dgvErrors.Rows.Clear();
            foreach (var error in errors)
            {
                var row = new DataGridViewRow();
                row.Tag = error;

                var image = _iconProvider.ImageList.Images[_iconProvider.GetImageIndex(error.Severity)];

                row.Cells.Add(new DataGridViewImageCell() { Value = image, ToolTipText = error.Severity.ToString() });
                row.Cells.Add(new DataGridViewTextBoxCell() { Value = error.Message });
                row.Cells.Add(new DataGridViewTextBoxCell() { Value = error.Location.FilePath.FileName });
                row.Cells.Add(new DataGridViewTextBoxCell() { Value = error.Location.Line });
                row.Cells.Add(new DataGridViewTextBoxCell() { Value = error.Location.Column });
                dgvErrors.Rows.Add(row);
            }
        }

15. Example

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

16. Example

Project: fdotoolbox
Source File: FdoBulkUpdateCtl.cs
View license
public void AddDataProperty(DataPropertyDefinition dataDef)
        {
            if (dataDef.IsAuto/n ..... /n //View Source file for more details /n }

17. Example

Project: fdotoolbox
Source File: FdoConnectCtl.cs
View license
public void AddProperty(FdoToolbox.Core.Connections.DictionaryProperty p)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = p.LocalizedName;

            DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell();
            if (p.IsFile || p.IsPath)
            {
                valueCell.ContextMenuStrip = ctxHelper;
                valueCell.ToolTipText = "Right click for helpful options";
            }
            valueCell.Value = p.DefaultValue;

            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);
            
            grdProperties.Rows.Add(row);

            if (p.Protected)
                pwdCells.Add(valueCell);
        }

18. Example

Project: fdotoolbox
Source File: FdoCreateDataStoreCtl.cs
View license
public void AddConnectProperty(DictionaryProperty p)
        {
            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
            nameCell.Value = p.LocalizedName;

            DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell();
            if (p.IsFile || p.IsPath)
            {
                valueCell.ContextMenuStrip = ctxHelper;
                valueCell.ToolTipText = "Right click for helpful options";
            }
            valueCell.Value = p.DefaultValue;

            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            grdConnectionProperties.Rows.Add(row);

            if (p.Protected)
                pwdCells.Add(valueCell);
        }

19. Example

Project: fdotoolbox
Source File: FdoInsertScaffold.cs
View license
public void AddGeometricProperty(GeometricPropertyDefinition geomDef, String szClassHierarchy)
		{
			if (geomDef.ReadOnly)
				return;

			DataGridViewRow row = new DataGridViewRow();
			DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();

			if (!String.IsNullOrEmpty(szClassHierarchy))
				nameCell.Value = szClassHierarchy + ":";
			nameCell.Value += geomDef.Name;

			nameCell.Tag = geomDef;

			DataGridViewCell valueCell = new DataGridViewTextBoxCell();
			valueCell.ToolTipText = "Enter the FGF or WKB geometry text";

			row.Cells.Add(nameCell);
			row.Cells.Add(valueCell);

			nameCell.ReadOnly = true;

			grdProperties.Rows.Add(row);

		}

20. Example

Project: fdotoolbox
Source File: FdoUpdateScaffold.cs
View license
public void AddGeometricProperty(GeometricPropertyDefinition geomDef, string value, String szClassHierarchy)
		{
            if (geomDef.ReadOnly)
                return;

            DataGridViewRow row = new DataGridViewRow();
            DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
			
			if (!String.IsNullOrEmpty(szClassHierarchy))
				nameCell.Value = szClassHierarchy + ".";
			nameCell.Value += geomDef.Name;
			
			nameCell.Tag = geomDef;

            DataGridViewCell valueCell = new DataGridViewTextBoxCell();
            valueCell.ToolTipText = "Enter the FGF or WKB geometry text";
            valueCell.Value = value;

            row.Cells.Add(nameCell);
            row.Cells.Add(valueCell);

            nameCell.ReadOnly = true;

            grdProperties.Rows.Add(row);

        }

21. Example

Project: xenadmin
Source File: MultipleWarningDialog.cs
View license
public DataGridViewRow GetWarningRow()
            {
                DataGridViewRow row = new DataGridViewRow();
                DataGridViewImageCell warningImageCell = new DataGridViewImageCell();
                warningImageCell.Value = Images.StaticImages._000_Alert2_h32bit_16;

                DataGridViewTextBoxCell warningCell = new DataGridViewTextBoxCell();
                warningCell.Value = string.Format("{0}\n\r\n\r{1}", ActionTitle, WarningMessage);

                row.Cells.Add(warningImageCell);
                row.Cells.Add(warningCell);
                return row;
            }

22. Example

Project: xenadmin
Source File: MultipleWarningDialog.cs
View license
public List<DataGridViewRow> GetAppliesToRows()
            {
                List<DataGridViewRow> rows = new List<DataGridViewRow>();
                foreach (IXenObject o in AppliesTo)
                {
                    DataGridViewRow r = new DataGridViewRow();
                    DataGridViewImageCell typeImageCell = new DataGridViewImageCell();
                    typeImageCell.Value = Images.GetImage16For(o);
                    DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell();
                    nameCell.Value = Helpers.GetName(o);
                    r.Cells.Add(typeImageCell);
                    r.Cells.Add(nameCell);
                    rows.Add(r);
                }
                return rows;
            }

23. 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);
            }
        }

24. Example

Project: OsEngine
Source File: PositionController.cs
View license
private DataGridViewRow GetRow(Position position)
        {
            if (position == null)
      /n ..... /n //View Source file for more details /n }

25. Example

Project: OsEngine
Source File: JournalUi.xaml.cs
View license
private DataGridViewRow GetRow(Position position)
        {
            if (position == null)
      /n ..... /n //View Source file for more details /n }

26. Example

Project: OsEngine
Source File: Log.cs
View license
private static void SetNewErrorMessage(LogMessage message)
        {
            if (!MainWindow.GetDispatcher.CheckAccess())
            {
                MainWindow.GetDispatcher.Invoke(new Action<LogMessage>(SetNewErrorMessage), message);
                return;
            }

            DataGridViewRow row = new DataGridViewRow();
            row.Cells.Add(new DataGridViewTextBoxCell());
            row.Cells[0].Value = DateTime.Now;

            row.Cells.Add(new DataGridViewTextBoxCell());
            row.Cells[1].Value = LogMessageType.Error;

            row.Cells.Add(new DataGridViewTextBoxCell());
            row.Cells[2].Value = message.Message;
            _gridErrorLog.Rows.Insert(0, row);

            if (_logErrorUi == null)
            {
                _logErrorUi = new LogErrorUi(_gridErrorLog);
                _logErrorUi.Closing += _logErrorUi_Closing;
                _logErrorUi.Show();
            }

            SystemSounds.Beep.Play();
        }

27. 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);
            }
        }

28. Example

Project: OsEngine
Source File: OsDataSetUi.xaml.cs
View license
private void ReloadSecuritiesOnTable()
        {
            _grid.Rows.Clear();
            List<string> names = _set.SecuritiesNames;

            for (int i = 0;names != null &&  i < names.Count; i++)
            {
                DataGridViewRow row = new DataGridViewRow();
                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[0].Value = names[i];

                _grid.Rows.Insert(0, row);
            }
        }

29. Example

Project: OsEngine
Source File: GlobalPosition.cs
View license
private DataGridViewRow GetRow(Position position)
        {
            if (position == null)
      /n ..... /n //View Source file for more details /n }

30. Example

Project: fdotoolbox
Source File: FdoInsertScaffold.cs
View license
public void AddDataProperty(DataPropertyDefinition dataDef, String szClassHierarchy)
        {
			if/n ..... /n //View Source file for more details /n }

31. Example

Project: fdotoolbox
Source File: FdoUpdateScaffold.cs
View license
public void AddDataProperty(DataPropertyDefinition dataDef, object value, String szClassHierarchy)
 /n ..... /n //View Source file for more details /n }

32. Example

Project: NClass
Source File: MessagePanel.cs
View license
private void DisplayMessage(Message message)
    {
      DataGridViewRow newRow = new DataGridViewRow {Tag = message};
      newRow.Cells.Add(new DataGridViewImageCell {Value = imageList.Images[message.Severity.ToString()]});
      newRow.Cells.Add(new DataGridViewTextBoxCell {Value = message.MessageText});
      newRow.Cells.Add(new DataGridViewTextBoxCell { Value = message.File });
      newRow.Cells.Add(new DataGridViewTextBoxCell { Value = message.Line });
      newRow.Cells.Add(new DataGridViewTextBoxCell { Value = message.Column });
      UpdateRowVisibility(newRow);

      dataGridView.Rows.Add(newRow);

      UpdateButtonText();
    }

33. Example

Project: xenadmin
Source File: PluginOptionsPage.cs
View license
private void m_gridPlugins_SelectionChanged(object sender, EventArgs e)
        {
            try
  /n ..... /n //View Source file for more details /n }

34. 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 }

35. Example

Project: OsEngine
Source File: Log.cs
View license
private void PaintMessage(LogMessage messageLog)
        {
            try
            {
                if (_grid.InvokeRequired)
                {
                    _grid.Invoke(new Action<LogMessage>(PaintMessage), messageLog);
                    return;
                }

                if (_messageses == null)
                {
                    _messageses = new List<LogMessage>();
                }

                _messageses.Add(messageLog);

                _messageSender.AddNewMessage(messageLog);

                DataGridViewRow row = new DataGridViewRow();
                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[0].Value = messageLog.Time;

                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[1].Value = messageLog.Type;

                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[2].Value = messageLog.Message;
                _grid.Rows.Insert(0, row);

            }
            catch (Exception)
            {
                // ignore
            }
        }

36. Example

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

37. 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 }

38. Example

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

39. 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);
            }
        }

40. 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);
            }
        }

41. 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 }

42. 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);
            }
        }

43. 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);
            }
        }

44. Example

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

45. Example

Project: OsEngine
Source File: NewSecurityUi.xaml.cs
View license
private void ReloadSecurityTable()
        {
            if (ComboBoxClass.SelectedItem == null)
            {
                return;
            }

            _grid.Rows.Clear();

            List<DataGridViewRow> rows = new List<DataGridViewRow>();
            for (int i = 0; _securities != null && i < _securities.Count; i++)
            {
                if (ComboBoxClass.SelectedItem.ToString() != "All" && _securities[i].NameClass != ComboBoxClass.SelectedItem.ToString())
                {
                    continue;
                }

                if (_securities[i].NameFull== null ||
                    _securities[i].NameFull[0] == '\'' && _securities[i].NameFull[1] == '\'' &&
                    _securities[i].NameFull.Length == 2)
                {
                    continue;
                }

                DataGridViewRow row = new DataGridViewRow();
                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[0].Value = _securities[i].Name;

                row.Cells.Add(new DataGridViewTextBoxCell());
                row.Cells[1].Value = _securities[i].NameFull;

                rows.Add(row);
            }

            _grid.Rows.AddRange(rows.ToArray());
        }

46. 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 }

47. Example

Project: FunctionHacker
Source File: DataGridViewCall.cs
View license
public void setData(oFunction functionBase, oSingleData measuredData)
        {

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

48. Example

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

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

49. 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 }

50. Example

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