Here are the examples of the csharp api class System.Windows.Forms.DataGridViewRow.CreateCells(System.Windows.Forms.DataGridView, params object[]) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
44 Examples
0
1. Example
View licenseprivate void AddNewJournalRow(bool insert, HistoryEntry item) // second part of add history row, adds item to view. { string detail = ""; if (item.EventDescription.Length > 0) detail = item.EventDescription; if (item.EventDetailedInfo.Length > 0) detail += ((detail.Length > 0) ? Environment.NewLine : "") + item.EventDetailedInfo; var rw = dataGridViewJournal.RowTemplate.Clone() as DataGridViewRow; rw.CreateCells(dataGridViewJournal, EDDiscoveryForm.EDDConfig.DisplayUTC ? item.EventTimeUTC : item.EventTimeLocal, "", item.EventSummary, detail); rw.Cells[JournalHistoryColumns.HistoryTag].Tag = item; int rownr = 0; if (insert) { dataGridViewJournal.Rows.Insert(rownr, rw); } else { rownr = dataGridViewJournal.Rows.Add(rw); } rowsbyjournalid[item.Journalid] = dataGridViewJournal.Rows[rownr]; }
0
2. Example
View licenseprivate void AddNewHistoryRow(bool insert, HistoryEntry item) // second part of add histo/n ..... /n //View Source file for more details /n }
0
3. Example
View licenseprivate void AddPackageSource(string source, string key) { var row = (DataGridViewRow)dgvAPIKeys.RowTemplate.Clone(); row.CreateCells(dgvAPIKeys, source, key); dgvAPIKeys.Rows.Add(row); }
0
4. Example
View licenseprivate void AddRow(string workItem, string status) { DataGridViewRow row = (DataGridViewRow)gridProcessing.RowTemplate.Clone(); row.CreateCells(gridProcessing); row.Cells[0].Value = DeployImageList.Images[0]; row.Cells[1].Value = workItem; row.Cells[2].Value = status; int rowIndex = gridProcessing.Rows.Add(row); gridProcessing.AutoResizeRow(rowIndex, DataGridViewAutoSizeRowMode.AllCells); }
0
5. Example
View licensepublic void AddNewImageRow(ImageContent contentToAdd) { DataGridViewRow NewRow = new DataGridViewRow(); NewRow.CreateCells(imageDataGrid); NewRow.Cells[0].Value = contentToAdd.index; NewRow.Cells[1].Value = contentToAdd.image; NewRow.Cells[2].Value = contentToAdd.time; //Adjusts height of a row NewRow.Height = contentToAdd.image.Height; imageDataGrid.Rows.Insert(imageDataGrid.RowCount, NewRow); MainTabControl.SelectedIndex = 1; }
0
6. Example
View licensepublic void AddNewTextRow(TextContent contentToAdd) { DataGridViewRow NewRow = new DataGridViewRow(); NewRow.CreateCells(textDataGrid); NewRow.Cells[0].Value = contentToAdd.index; NewRow.Cells[1].Value = contentToAdd.text; NewRow.Cells[2].Value = contentToAdd.time; textDataGrid.Rows.Insert(textDataGrid.RowCount, NewRow); MainTabControl.SelectedIndex = 0; }
0
7. Example
View licenseprivate void AddRow(string workItem, string status) { DataGridViewRow row = (DataGridViewRow)gridProcessing.RowTemplate.Clone(); row.CreateCells(gridProcessing); row.Cells[0].Value = DeployImageList.Images[0]; row.Cells[1].Value = workItem; row.Cells[2].Value = status; int rowIndex = gridProcessing.Rows.Add(row); gridProcessing.AutoResizeRow(rowIndex, DataGridViewAutoSizeRowMode.AllCells); }
0
8. Example
View licenseprivate void AppendData(RoutePlotter.ReturnInfo info) { BeginInvoke((MethodInvoker)delegate { DataGridViewRow rw = dataGridViewRoute.RowTemplate.Clone() as DataGridViewRow; rw.CreateCells(dataGridViewRoute, info.name, double.IsNaN(info.dist) ? "" : info.dist.ToString("N2"), info.pos == null ? "" : info.pos.X.ToString("0.00"), info.pos == null ? "" : info.pos.Y.ToString("0.00"), info.pos == null ? "" : info.pos.Z.ToString("0.00"), double.IsNaN(info.waypointdist) ? "" : info.waypointdist.ToString("0.0"), double.IsNaN(info.deviation) ? "" : info.deviation.ToString("0.0") ); rw.Tag = info.system; // may be null if waypoint or not a system rw.HeaderCell.Value = info.pos != null ? (dataGridViewRoute.Rows.Count + 1).ToStringInvariant() : "-"; dataGridViewRoute.Rows.Add(rw); }); }
0
9. Example
View licenseprivate void ConfigControl_Load(object sender, EventArgs e) { List<RuleItem> ruleList = this.oInjection.queryRule(); this.dataGridView.Rows.Clear(); foreach (var oRule in ruleList) { DataGridViewRow dgvr = new DataGridViewRow(); dgvr.CreateCells(this.dataGridView); dgvr.Cells[0].Value = Convert.ToBoolean(oRule.Enabled); dgvr.Cells[1].Value = oRule.Type; dgvr.Cells[2].Value = oRule.Match; dgvr.Cells[3].Value = oRule.Order; this.dataGridView.Rows.Add(dgvr); } }
0
10. Example
View licensepublic void addItem(string type, string rule) { //??XML string order = this.oInjection.addRule(type.ToLower(), rule); DataGridViewRow dr = new DataGridViewRow(); dr.CreateCells(this.dataGridView); dr.Cells[0].Value = true; dr.Cells[1].Value = type; dr.Cells[2].Value = rule; dr.Cells[3].Value = order; this.dataGridView.Rows.Add(dr); }
0
11. Example
View licenseprivate void InitView(int shipID) { var record = RecordManager.Instance.ShipParameter[shipID]; if (record == null) { RecordManager.Instance.ShipParameter[shipID] = record = new ShipParameterRecord.ShipParameterElement(); } var keys = RecordManager.Instance.ShipParameter.RecordHeader.Split(','); var values = record.SaveLine().Split(','); ParameterView.Rows.Clear(); var rows = new DataGridViewRow[keys.Length]; for (int i = 0; i < rows.Length; i++) { rows[i] = new DataGridViewRow(); rows[i].CreateCells(ParameterView); rows[i].SetValues(keys[i], values[i]); } rows[0].ReadOnly = rows[1].ReadOnly = true; ParameterView.Rows.AddRange(rows); }
0
12. Example
View licenseprivate void ButtonRun_Click(object sender, EventArgs e) { if (Searcher.IsBusy) { if (M/n ..... /n //View Source file for more details /n }
0
13. Example
View licenseprivate void ButtonRun_Click(object sender, EventArgs e) { if (Searcher.IsBusy) { if (M/n ..... /n //View Source file for more details /n }
0
14. Example
View licenseprivate DataGridViewRow GetExpressionViewRow(ExpressionList exp) { var row = new DataGridViewRow(); row.CreateCells(ExpressionView); row.SetValues( exp.Enabled, exp.ExternalAnd, exp.Inverse, exp.InternalAnd, exp.ToString() ); return row; }
0
15. Example
View licenseprivate DataGridViewRow GetExpressionDetailViewRow(ExpressionData exp) { var row = new DataGridViewRow(); row.CreateCells(ExpressionDetailView); row.SetValues( exp.Enabled, exp.LeftOperand, exp.RightOperand, exp.Operator ); return row; }
0
16. Example
View licenseprivate void UpdateConstFilterView() { List<int> values = ConstFilterSelector.SelectedIndex == 0 ? _group.InclusionFilter : _group.ExclusionFilter; ConstFilterView.Rows.Clear(); var rows = new DataGridViewRow[values.Count]; for (int i = 0; i < rows.Length; i++) { rows[i] = new DataGridViewRow(); rows[i].CreateCells(ConstFilterView); var ship = KCDatabase.Instance.Ships[values[i]]; rows[i].SetValues(values[i], ship?.NameWithLevel ?? "(???)"); } ConstFilterView.Rows.AddRange(rows); }
0
17. Example
View licenseprivate void ButtonLeftAll_Click(object sender, EventArgs e) { var addrows = new DataGridViewRow[DisabledView.Rows.Count]; int i = 0; foreach (DataGridViewRow src in DisabledView.Rows) { addrows[i] = new DataGridViewRow(); addrows[i].CreateCells(EnabledView); addrows[i].SetValues(src.Cells[DisabledView_Name.Index].Value, ListSortDirection.Ascending); addrows[i].Cells[EnabledView_Name.Index].Tag = src.Cells[DisabledView_Name.Index].Tag; addrows[i].Tag = src.Tag; i++; } DisabledView.Rows.Clear(); EnabledView.Rows.AddRange(addrows); DisabledView.Sort(DisabledView_Name, ListSortDirection.Ascending); }
0
18. Example
View licenseprivate void ButtonRightAll_Click(object sender, EventArgs e) { var addrows = new DataGridViewRow[EnabledView.Rows.Count]; int i = 0; foreach (DataGridViewRow src in EnabledView.Rows) { addrows[i] = new DataGridViewRow(); addrows[i].CreateCells(DisabledView); addrows[i].SetValues(src.Cells[DisabledView_Name.Index].Value); addrows[i].Cells[DisabledView_Name.Index].Tag = src.Cells[EnabledView_Name.Index].Tag; addrows[i].Tag = src.Tag; i++; } EnabledView.Rows.Clear(); DisabledView.Rows.AddRange(addrows); DisabledView.Sort(DisabledView_Name, ListSortDirection.Ascending); }
0
19. Example
View licenseprivate void ClearQuestView() { QuestView.Rows.Clear(); { DataGridViewRow row = new DataGridViewRow(); row.CreateCells(QuestView); row.SetValues(null, null, null, "(???)", null); QuestView.Rows.Add(row); } }
0
20. Example
View licenseprivate async void AttachmentViewerForm_Load(object sender, EventArgs e) { Text /n ..... /n //View Source file for more details /n }
0
21. Example
View licenseprivate async void GetContactItems() { try { var res/n ..... /n //View Source file for more details /n }
0
22. Example
View licenseprivate void CreatePropTable2(dynamic itemResult) { DynamicJson dynamicJsonObject = itemResult; try { foreach (KeyValuePair<string, object> item in itemResult) { if (!dynamicJsonObject.IsDefined(item.Key)) { // Exclude non dynamic props. continue; } DataGridViewRow propRow = new DataGridViewRow(); string valueString = (item.Value == null) ? "" : item.Value.ToString(); propRow.CreateCells(dataGridView_ItemProps, new object[] { item.Key, valueString, "Dynamic" }); if (dataGridView_ItemProps.InvokeRequired) { dataGridView_ItemProps.Invoke(new MethodInvoker(delegate { dataGridView_ItemProps.Rows.Add(propRow); })); } else { dataGridView_ItemProps.Rows.Add(propRow); } } } catch (Exception ex) { MessageBox.Show(ex.Message, "Office365APIEditor"); } }
0
23. Example
View licenseprivate async void GetMessageFolderProps(string FolderId, string FolderDisplayName) { /n ..... /n //View Source file for more details /n }
0
24. Example
View licenseprivate async void GetContactFolderProps(string FolderId, string FolderDisplayName) { /n ..... /n //View Source file for more details /n }
0
25. Example
View licenseprivate async void GetCalendarFolderProps(string FolderId, string FolderDisplayName) { /n ..... /n //View Source file for more details /n }
0
26. Example
View licenseprivate void DisplayData() { var similarities = (TLSimilarityMatrix)Data; List<DataGridViewRow> rows = new List<DataGridViewRow>(similarities.Count); foreach (TLSingleLink link in similarities.AllLinks) { DataGridViewRow row = new DataGridViewRow(); row.CreateCells(similaritiesGrid, link.SourceArtifactId, link.TargetArtifactId, link.Score); rows.Add(row); } similaritiesGrid.Rows.AddRange(rows.ToArray()); }
0
27. Example
View licenseprivate void UpdateBGMPlayerUI() { BGMPlayer_ControlGrid.Rows.Clear(); var rows = new DataGridViewRow[BGMHandles.Count]; int i = 0; foreach (var h in BGMHandles.Values) { var row = new DataGridViewRow(); row.CreateCells(BGMPlayer_ControlGrid); row.SetValues(h.Enabled, h.HandleID, h.Path); rows[i] = row; i++; } BGMPlayer_ControlGrid.Rows.AddRange(rows); BGMPlayer_VolumeAll.Value = (int)BGMHandles.Values.Average(h => h.Volume); }
0
28. Example
View licenseprivate void ButtonRun_Click(object sender, EventArgs e) { if (Searcher.IsBusy) { if (M/n ..... /n //View Source file for more details /n }
0
29. Example
View licenseprivate void ButtonLeft_Click(object sender, EventArgs e) { var selectedRows = DisabledView.SelectedRows; if (selectedRows.Count == 0) { System.Media.SystemSounds.Asterisk.Play(); return; } var addrows = new DataGridViewRow[selectedRows.Count]; int i = 0; foreach (DataGridViewRow src in selectedRows) { addrows[i] = new DataGridViewRow(); addrows[i].CreateCells(EnabledView); addrows[i].SetValues(src.Cells[DisabledView_Name.Index].Value, ListSortDirection.Ascending); addrows[i].Cells[EnabledView_Name.Index].Tag = src.Cells[DisabledView_Name.Index].Tag; addrows[i].Tag = src.Tag; DisabledView.Rows.Remove(src); i++; } EnabledView.Rows.AddRange(addrows); DisabledView.Sort(DisabledView_Name, ListSortDirection.Ascending); }
0
30. Example
View licenseprivate void ButtonRight_Click(object sender, EventArgs e) { var selectedRows = EnabledView.SelectedRows; if (selectedRows.Count == 0) { System.Media.SystemSounds.Asterisk.Play(); return; } var addrows = new DataGridViewRow[selectedRows.Count]; int i = 0; foreach (DataGridViewRow src in selectedRows) { addrows[i] = new DataGridViewRow(); addrows[i].CreateCells(DisabledView); addrows[i].SetValues(src.Cells[DisabledView_Name.Index].Value); addrows[i].Cells[DisabledView_Name.Index].Tag = src.Cells[EnabledView_Name.Index].Tag; addrows[i].Tag = src.Tag; EnabledView.Rows.Remove(src); i++; } DisabledView.Rows.AddRange(addrows); DisabledView.Sort(DisabledView_Name, ListSortDirection.Ascending); }
0
31. Example
View licensevoid Updated() { if (!KCDatabase.Instance.Quest.IsLoaded) return; QuestView.SuspendLayout(/n ..... /n //View Source file for more details /n }
0
32. Example
View licenseprivate DataGridViewRow CreateShipViewRow(ShipData ship) { if (ship == null) return null; /n ..... /n //View Source file for more details /n }
0
33. Example
View licenseprivate void PopEntry(int index) { var p = SAV.Personal[index]; int/n ..... /n //View Source file for more details /n }
0
34. Example
View licenseprivate async void GetMessageItemsInMsgFolderRoot() { // I don't know why but it/n ..... /n //View Source file for more details /n }
0
35. Example
View licenseprivate async Task<bool> GetMessageItems(string TargetFolderID) { // Retur/n ..... /n //View Source file for more details /n }
0
36. Example
View licenseprivate async void GetCalendarItems() { try { var re/n ..... /n //View Source file for more details /n }
0
37. Example
View licenseprivate DataGridViewRow getRow(int i, RNGResult result) { int d = i - (int)Time_/n ..... /n //View Source file for more details /n }
0
38. Example
View licenseprivate void DisplayData() { var artifacts = (TLArtifactsCollection)Data; List<DataGridViewRow> rows = new List<DataGridViewRow>(artifacts.Count); foreach (TLArtifact art in artifacts.Values) { DataGridViewRow row = new DataGridViewRow(); row.CreateCells(artifactsGrid, art.Id, art.Text); rows.Add(row); } artifactsGrid.Rows.AddRange(rows.ToArray()); }
0
39. Example
View licenseprivate void UpdateView() { var ships = KCDatabase.Instance.Ships.Values; var equipments = /n ..... /n //View Source file for more details /n }
0
40. Example
View licenseprivate void AddVIFRow(VIF vif) { var row = new VifRow(vif); XenAPI.Networ/n ..... /n //View Source file for more details /n }
0
41. Example
View licenseprivate void UpdateDetailView(int equipmentID) { DetailView.SuspendLayout(); DetailView.Ro/n ..... /n //View Source file for more details /n }
0
42. Example
View licenseprivate void LoadFiles(string path) { if (!Directory.Exists(path)) return; CurrentPath = path; APIView.Rows.Clear(); var rows = new LinkedList<DataGridViewRow>(); foreach (string file in Directory.GetFiles(path, "*.json", SearchOption.TopDirectoryOnly)) { var row = new DataGridViewRow(); row.CreateCells(APIView); row.SetValues(Path.GetFileName(file)); rows.AddLast(row); } APIView.Rows.AddRange(rows.ToArray()); APIView.Sort(APIView_FileName, ListSortDirection.Ascending); }
0
43. Example
View licenseprivate void Updated() { ShipData[] ships = GetShips().ToArray(); int formation = Formation/n ..... /n //View Source file for more details /n }
0
44. Example
View licensepublic void ShowFileHashForm(string[] paths) { if(!fCancellationPending) { /n ..... /n //View Source file for more details /n }