14 references to GetContextMenuStrip
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridViewBand.cs (1)
48
return ((DataGridViewRow)this).
GetContextMenuStrip
(Index);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1746
contextMenuStrip = OwningRow.
GetContextMenuStrip
(rowIndex);
System.Windows.Forms.Tests (12)
System\Windows\Forms\DataGridViewRowTests.cs (12)
4257
Assert.Null(row.
GetContextMenuStrip
(rowIndex));
4262
Assert.Same(menu, row.
GetContextMenuStrip
(rowIndex));
4281
Assert.Same(menu1, row1.
GetContextMenuStrip
(0));
4282
Assert.Same(menu1, row1.
GetContextMenuStrip
(0));
4283
Assert.Same(menu2, row2.
GetContextMenuStrip
(1));
4284
Assert.Same(menu2, row2.
GetContextMenuStrip
(1));
4314
Assert.Same(menu2, row.
GetContextMenuStrip
(0));
4319
Assert.Same(menu1, row.
GetContextMenuStrip
(0));
4351
Assert.Same(menu2, row.
GetContextMenuStrip
(0));
4356
Assert.Same(menu1, row.
GetContextMenuStrip
(0));
4371
Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => row.
GetContextMenuStrip
(rowIndex));
4383
Assert.Throws<InvalidOperationException>(() => row.
GetContextMenuStrip
(-1));