Base:
property
ContextMenuStrip
System.Windows.Forms.DataGridViewBand.ContextMenuStrip
33 writes to ContextMenuStrip
System.Windows.Forms.Tests (33)
System\Windows\Forms\DataGridViewCellTests.cs (3)
120ContextMenuStrip = menu 4214ContextMenuStrip = menu 4227ContextMenuStrip = menu
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2229ContextMenuStrip = menu 2242ContextMenuStrip = menu
System\Windows\Forms\DataGridViewRowTests.cs (28)
77row.ContextMenuStrip = menu1; 114row.ContextMenuStrip = menu1; 160ContextMenuStrip = value 165row.ContextMenuStrip = value; 176ContextMenuStrip = oldValue 179row.ContextMenuStrip = value; 183row.ContextMenuStrip = value; 198row.ContextMenuStrip = value; 203row.ContextMenuStrip = value; 219row.ContextMenuStrip = value; 224row.ContextMenuStrip = value; 235ContextMenuStrip = menu 250ContextMenuStrip = menu1 254row.ContextMenuStrip = menu2; 281row.ContextMenuStrip = menu1; 286row.ContextMenuStrip = menu1; 292row.ContextMenuStrip = menu2; 297row.ContextMenuStrip = null; 303row.ContextMenuStrip = menu1; 3930ContextMenuStrip = menu, 3973ContextMenuStrip = menu, 4020source.ContextMenuStrip = menu; 4174ContextMenuStrip = new ContextMenuStrip() 4261row.ContextMenuStrip = menu; 4277row1.ContextMenuStrip = menu1; 4280row2.ContextMenuStrip = menu2; 4301row.ContextMenuStrip = menu1; 4338row.ContextMenuStrip = menu1;
36 references to ContextMenuStrip
System.Windows.Forms.Tests (36)
System\Windows\Forms\DataGridViewRowTests.cs (36)
20Assert.Null(row.ContextMenuStrip); 61Assert.Null(row.ContextMenuStrip); 90Assert.Same(menu2, row.ContextMenuStrip); 95Assert.Same(menu1, row.ContextMenuStrip); 127Assert.Same(menu2, row.ContextMenuStrip); 132Assert.Same(menu1, row.ContextMenuStrip); 145Assert.Throws<InvalidOperationException>(() => row.ContextMenuStrip); 162Assert.Same(value, row.ContextMenuStrip); 166Assert.Same(value, row.ContextMenuStrip); 180Assert.Same(value, row.ContextMenuStrip); 184Assert.Same(value, row.ContextMenuStrip); 199Assert.Same(value, row.ContextMenuStrip); 204Assert.Same(value, row.ContextMenuStrip); 220Assert.Throws<InvalidOperationException>(() => row.ContextMenuStrip); 225Assert.Throws<InvalidOperationException>(() => row.ContextMenuStrip); 237Assert.Same(menu, row.ContextMenuStrip); 240Assert.Null(row.ContextMenuStrip); 252Assert.Same(menu1, row.ContextMenuStrip); 255Assert.Same(menu2, row.ContextMenuStrip); 258Assert.Same(menu2, row.ContextMenuStrip); 282Assert.Same(menu1, row.ContextMenuStrip); 287Assert.Same(menu1, row.ContextMenuStrip); 293Assert.Same(menu2, row.ContextMenuStrip); 298Assert.Null(row.ContextMenuStrip); 304Assert.Same(menu1, row.ContextMenuStrip); 3906Assert.Null(row.ContextMenuStrip); 3943Assert.NotNull(row.ContextMenuStrip); 3944Assert.NotSame(menu, row.ContextMenuStrip); 3986Assert.NotNull(row.ContextMenuStrip); 3987Assert.NotSame(menu, row.ContextMenuStrip); 4035Assert.NotNull(row.ContextMenuStrip); 4036Assert.NotSame(menu, row.ContextMenuStrip); 4162Assert.Null(row.ContextMenuStrip); 4166Assert.Null(row.ContextMenuStrip); 4177Assert.NotNull(row.ContextMenuStrip); 4181Assert.NotNull(row.ContextMenuStrip);