Here are the examples of the csharp api class System.Windows.Forms.DataGridViewRowCollection.Add(params object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
25 Examples
0
1. Example
View licenseprotected void addFilterFromSniffer(DataGridView sniffer, DataGridView filter) { if(sniffer.Rows.Count < 1 || sniffer.SelectedRows.Count < 1 || !filter.Enabled) { return; } DataGridViewRow rc = sniffer.SelectedRows[0]; filter.Rows.Add(rc.Cells[dgvCESnifferColumnGuid.Name].Value, rc.Cells[dgvCESnifferColumnId.Name].Value, rc.Cells[dgvCESnifferColumnCustomIn.Name].Value, rc.Cells[dgvCESnifferColumnCustomOut.Name].Value, rc.Cells[dgvCESnifferColumnEnum.Name].Value); }
0
2. Example
View licenseprivate void loadGridData(DataGridView datagrid, List<string> data) { foreach (var rowvalue in data) { datagrid.Rows.Add(rowvalue); } }
0
0
4. Example
View licensevoid StatToDGV(DataGridView datagrid, string title, string[] data, bool showEmptyLines = true) { object[] rowobj = new object[data.Length + 1]; bool empty = true; rowobj[0] = title; for (int ii = 0; ii < data.Length; ii++) { rowobj[ii + 1] = data[ii]; if (!data[ii].Equals("0") && !data[ii].Equals("0.00")) empty = false; } if (showEmptyLines ||empty ==false) datagrid.Rows.Add(rowobj); }
0
5. Example
View licensevoid StatToDGV(DataGridView datagrid, string title, int[] data) { object[] rowobj = new object[data.Length + 1]; rowobj[0] = title; for (int ii = 0; ii < data.Length; ii++) rowobj[ii + 1] = data[ii].ToString(); datagrid.Rows.Add(rowobj); }
0
6. Example
View licenseprivate static void CreateGrid() { _grid = new DataGridView(); _gri/n ..... /n //View Source file for more details /n }
0
7. Example
View licenseprivate void CreateTable() { _grid = new DataGridView(); _grid.Allo/n ..... /n //View Source file for more details /n }
0
8. Example
View licenseprivate void CreateTableTabsSimple() { _gridTableTabsSimple = new DataGridView()/n ..... /n //View Source file for more details /n }
0
9. Example
View licenseprivate void CreateTableOptimizeFazes() { _gridFazes = new DataGridView(); /n ..... /n //View Source file for more details /n }
0
10. Example
View licenseprivate void CreateTableParametrs() { _gridParametrs = new DataGridView(); /n ..... /n //View Source file for more details /n }
0
11. Example
View licenseprivate void CreateTableFazes() { _gridFazesEnd = new DataGridView(); /n ..... /n //View Source file for more details /n }
0
12. Example
View licenseprivate void CreateTableResults() { _gridResults = new DataGridView(); /n ..... /n //View Source file for more details /n }
0
13. Example
View licenseprivate void CreateTable() { _securitiesNamesGrid = new DataGridView(); /n ..... /n //View Source file for more details /n }
0
14. Example
View licenseprivate void AddToOrderList(IPluginBase plug, DataGridView dgv) { if (!viewContainsPlugin(dgv, plug.Uuid.ToString())) { dgv.Rows.Add(new object[] { plug.Uuid.ToString(), plug.Name }); } }
0
15. Example
View licensepublic void SetTableViewGridDataSource(IEnumerable<object[]> values) { msiTableGrid.Rows.Clear(); foreach (var row in values) { msiTableGrid.Rows.Add(row); } }
0
16. Example
View licenseprivate void AddRow(PlayerChangeType type, DataGridView table, IDictionary<int, PlayerChangeType> dic, bool addLock = true) { string key = EnumHelper.GetName(type); int index = addLock ? table.Rows.Add(key, 0, false) : table.Rows.Add(key, 0); dic.Add(index, type); Translation.AddTranslationAction(key, s => table.Rows[index].Cells[0].Value = s); PlayerParameters.Add(type, table.Rows[index]); }
0
17. Example
View licenseprivate void AddRow(MaidChangeType type, DataGridView table, IDictionary<int, MaidChangeType> dic, bool addLock = true) { string key = EnumHelper.GetName(type); int index = addLock ? table.Rows.Add(key, 0, false) : table.Rows.Add(key, 0); dic.Add(index, type); Translation.AddTranslationAction(key, s => table.Rows[index].Cells[0].Value = s); MaidParameters.Add(type, table.Rows[index]); }
0
18. Example
View licensepublic void CreateGlass() { try { _glassBox = new Da/n ..... /n //View Source file for more details /n }
0
19. Example
View licensepublic void UpdateLoadedStuff() { dataGridView1.Rows.Clear(); foreach(var a in Document.Gerbers) { List<string> V = new List<string>(); V.Add(a.visible ? "1" : "0"); V.Add(a.Color.ToArgb().ToString()); V.Add(Path.GetFileName(a.File.Name)); V.Add(a.File.Layer.ToString()); V.Add(a.File.Side.ToString()); dataGridView1.Rows.Add(V.ToArray()); }; }
0
20. Example
View licenseprivate void PopulateClaimsGrid(IDictionary<string, object> dictionary, DataGridView grid) { foreach (string key in dictionary.Keys) { switch (key) { case "nbf": case "exp": double d = double.Parse(dictionary[key].ToString()); DateTime dt = new DateTime(1970, 1, 1).AddSeconds(d); grid.Rows.Add(key, dt); break; case "actortoken": //actortoken is a JsonWebToken type JsonWebToken token = (JsonWebToken)dictionary[key]; string formatted = string.Format("{0}.{1}.{2}", token.Header, token.Body, token.Signature); grid.Rows.Add(key, formatted); //Show the actor token in the second data grid view dataGridView2.Visible = true; PopulateClaimsGrid(token.BodyClaims, dataGridView2); break; default: grid.Rows.Add(key, dictionary[key]); break; } } }
0
21. Example
View licensepublic void LoadSourceCode(MicrocodeBank bank, string path) { if (path == null) { throw new ArgumentNullException(path, "Microcode path must be specified."); } DataGridView view = bank == MicrocodeBank.ROM0 ? _rom0SourceViewer : _rom1SourceViewer; using (StreamReader sr = new StreamReader(path)) { while (!sr.EndOfStream) { string line = sr.ReadLine(); SourceLine src = new SourceLine(line); int i = view.Rows.Add( false, // breakpoint GetTextForTask(src.Task), src.Address, src.Text); // Give the row a color based on the task view.Rows[i].DefaultCellStyle.BackColor = GetColorForTask(src.Task); // Tag the row based on the PROM address (if any) to make it easy to find. if (!String.IsNullOrEmpty(src.Address)) { view.Rows[i].Tag = Convert.ToUInt16(src.Address, 8); } } } // Ensure the UI view gets refreshed to display the current MPC source Refresh(); }
0
22. Example
View licenseprivate static void AddLabelValue(string label, string value, DataGridView gridView) { gridView.BeginInvoke(new MethodInvoker(() => { var match = gridView.Rows.Cast<DataGridViewRow>().FirstOrDefault(x => x.Cells[0].Value.ToString() == label); if (match != null) { match.Cells[1].Value = value; gridView.UpdateCellValue(1, gridView.Rows.IndexOf(match)); } else { gridView.Rows.Add(label, value); } })); }
0
23. Example
View licenseprivate void fill(DataGridView grid, string filter = null) { if(!String.IsNullOrWhiteSpace(filter)) { filter = filter.ToLower(); } grid.SuspendLayout(); grid.Rows.Clear(); foreach(EnvDTE.Command cmd in _commands) { if(String.IsNullOrWhiteSpace(cmd.Name) || (filter != null && !cmd.Name.ToLower().Contains(filter))) { continue; } grid.Rows.Add(cmd.Name); } grid.ResumeLayout(); labelPropCount.Text = grid.Rows.Count.ToString(); }
0
24. Example
View licenseprivate void ButtonTestGenerators_Click(object sender, EventArgs e) { this.dataG/n ..... /n //View Source file for more details /n }
0
25. Example
View licensevoid ButtonTestGenerators_Click(object sender, EventArgs e) { dataGridViewGenera/n ..... /n //View Source file for more details /n }