1 write to _liveDataGridView
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
52
_liveDataGridView
= liveDataGridView;
32 references to _liveDataGridView
System.Windows.Forms.Design (32)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (32)
57
if (
_liveDataGridView
.Site.TryGetService(out IUIService? uiService))
130
_liveDataGridView
.Site?.Container?.Add(column, column.Name);
134
IUIService? uiService =
_liveDataGridView
.Site?.GetService<IUIService>();
135
DataGridViewDesigner.ShowErrorDialog(uiService, ex,
_liveDataGridView
);
156
IDesignerHost? host =
_liveDataGridView
.Site?.GetService<IDesignerHost>();
167
_liveDataGridView
.Columns,
521
if (!
_liveDataGridView
.Site.TryGetService(out IComponentChangeService? changeService))
528
DataGridViewColumn[] cols = new DataGridViewColumn[
_liveDataGridView
.Columns.Count - _initialDataGridViewColumnsCount];
529
for (int i = _initialDataGridViewColumnsCount; i <
_liveDataGridView
.Columns.Count; i++)
531
cols[i - _initialDataGridViewColumnsCount] =
_liveDataGridView
.Columns[i];
534
for (int i = _initialDataGridViewColumnsCount; i <
_liveDataGridView
.Columns.Count;)
536
_liveDataGridView
.Columns.RemoveAt(_initialDataGridViewColumnsCount);
541
PropertyDescriptor? prop = TypeDescriptor.GetProperties(
_liveDataGridView
)["Columns"];
542
changeService.OnComponentChanging(
_liveDataGridView
, prop);
551
_liveDataGridView
.Columns.AddRange(cols);
554
changeService.OnComponentChanged(
_liveDataGridView
, prop, null, null);
585
IHelpService? helpService =
_liveDataGridView
.Site?.GetService<IHelpService>();
636
if (
_liveDataGridView
.Site.TryGetService(out IDesignerHost? host))
639
nameCreationService =
_liveDataGridView
.Site.GetService<INameCreationService>();
647
_liveDataGridView
.Columns,
651
IUIService? uiService =
_liveDataGridView
.Site?.GetService<IUIService>();
652
DataGridViewDesigner.ShowErrorDialog(uiService, errorString,
_liveDataGridView
);
661
if (!
_liveDataGridView
.Site.TryGetService(out IDesignerHost? host))
711
if (
_liveDataGridView
.DataSource is not null)
716
currencyManager = BindingContext?[
_liveDataGridView
.DataSource,
_liveDataGridView
.DataMember] as CurrencyManager;
777
IDesignerHost? host =
_liveDataGridView
.Site?.GetService<IDesignerHost>();
779
INameCreationService? nameCreationService =
_liveDataGridView
.Site?.GetService<INameCreationService>();
786
_liveDataGridView
.Columns,
795
IUIService? uiService =
_liveDataGridView
.Site?.GetService<IUIService>();
796
DataGridViewDesigner.ShowErrorDialog(uiService, errorString,
_liveDataGridView
);
813
_initialDataGridViewColumnsCount =
_liveDataGridView
.Columns.Count;