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