Base:
property
DefaultCellStyle
System.Windows.Forms.DataGridViewBand.DefaultCellStyle
22 writes to DefaultCellStyle
System.Windows.Forms.Tests (22)
System\Windows\Forms\DataGridViewRowTests.cs (22)
404
DefaultCellStyle
= value
410
row.
DefaultCellStyle
= value;
425
DefaultCellStyle
= oldValue
428
row.
DefaultCellStyle
= value;
433
row.
DefaultCellStyle
= value;
448
row.
DefaultCellStyle
= value;
455
row.
DefaultCellStyle
= value;
475
row.
DefaultCellStyle
= oldValue;
477
row.
DefaultCellStyle
= value;
483
row.
DefaultCellStyle
= value;
514
row.
DefaultCellStyle
= style1;
520
row.
DefaultCellStyle
= style1;
530
row.
DefaultCellStyle
= style2;
536
row.
DefaultCellStyle
= null;
542
row.
DefaultCellStyle
= null;
548
row.
DefaultCellStyle
= style2;
555
row.
DefaultCellStyle
= style1;
570
Assert.Throws<InvalidOperationException>(() => row.
DefaultCellStyle
= new DataGridViewCellStyle());
2177
row.
DefaultCellStyle
= rowDefaultCellStyle;
3931
DefaultCellStyle
= style,
3974
DefaultCellStyle
= style,
4021
source.
DefaultCellStyle
= style;
34 references to DefaultCellStyle
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1914
rowStyle = DataGridView.Rows.SharedRow(rowIndex).
DefaultCellStyle
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (2)
98
throw new InvalidOperationException(string.Format(SR.DataGridView_InvalidPropertySetOnSharedRow, nameof(
DefaultCellStyle
)));
800
rowStyle =
DefaultCellStyle
;
System.Windows.Forms.Tests (31)
System\Windows\Forms\DataGridViewRowTests.cs (31)
23
Assert.NotNull(row.
DefaultCellStyle
);
24
Assert.Same(row.
DefaultCellStyle
, row.
DefaultCellStyle
);
371
Assert.NotNull(row.
DefaultCellStyle
);
372
Assert.Same(row.
DefaultCellStyle
, row.
DefaultCellStyle
);
384
Assert.NotNull(row.
DefaultCellStyle
);
385
Assert.Same(row.
DefaultCellStyle
, row.
DefaultCellStyle
);
406
Assert.Equal(expected, row.
DefaultCellStyle
);
411
Assert.Equal(expected, row.
DefaultCellStyle
);
429
Assert.Equal(expected, row.
DefaultCellStyle
);
434
Assert.Equal(expected, row.
DefaultCellStyle
);
450
Assert.Equal(expected, row.
DefaultCellStyle
);
456
Assert.Equal(expected, row.
DefaultCellStyle
);
478
Assert.Equal(expected, row.
DefaultCellStyle
);
484
Assert.Equal(expected, row.
DefaultCellStyle
);
515
Assert.Equal(style1, row.
DefaultCellStyle
);
521
Assert.Equal(style1, row.
DefaultCellStyle
);
531
Assert.Same(style2, row.
DefaultCellStyle
);
537
Assert.NotNull(row.
DefaultCellStyle
);
543
Assert.NotNull(row.
DefaultCellStyle
);
549
Assert.NotNull(row.
DefaultCellStyle
);
556
Assert.Equal(style1, row.
DefaultCellStyle
);
3908
Assert.NotNull(row.
DefaultCellStyle
);
3946
Assert.Equal(style, row.
DefaultCellStyle
);
3947
Assert.NotSame(style, row.
DefaultCellStyle
);
3989
Assert.Equal(style, row.
DefaultCellStyle
);
3990
Assert.NotSame(style, row.
DefaultCellStyle
);
4038
Assert.Equal(style, row.
DefaultCellStyle
);
4039
Assert.NotSame(style, row.
DefaultCellStyle
);