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)
56
if (
_liveDataGridView
.Site.TryGetService(out IUIService? uiService))
129
_liveDataGridView
.Site?.Container?.Add(column, column.Name);
133
IUIService? uiService =
_liveDataGridView
.Site?.GetService<IUIService>();
134
DataGridViewDesigner.ShowErrorDialog(uiService, ex,
_liveDataGridView
);
155
IDesignerHost? host =
_liveDataGridView
.Site?.GetService<IDesignerHost>();
166
_liveDataGridView
.Columns,
520
if (!
_liveDataGridView
.Site.TryGetService(out IComponentChangeService? changeService))
527
DataGridViewColumn[] cols = new DataGridViewColumn[
_liveDataGridView
.Columns.Count - _initialDataGridViewColumnsCount];
528
for (int i = _initialDataGridViewColumnsCount; i <
_liveDataGridView
.Columns.Count; i++)
530
cols[i - _initialDataGridViewColumnsCount] =
_liveDataGridView
.Columns[i];
533
for (int i = _initialDataGridViewColumnsCount; i <
_liveDataGridView
.Columns.Count;)
535
_liveDataGridView
.Columns.RemoveAt(_initialDataGridViewColumnsCount);
540
PropertyDescriptor? prop = TypeDescriptor.GetProperties(
_liveDataGridView
)["Columns"];
541
changeService.OnComponentChanging(
_liveDataGridView
, prop);
550
_liveDataGridView
.Columns.AddRange(cols);
553
changeService.OnComponentChanged(
_liveDataGridView
, prop, null, null);
584
IHelpService? helpService =
_liveDataGridView
.Site?.GetService<IHelpService>();
635
if (
_liveDataGridView
.Site.TryGetService(out IDesignerHost? host))
638
nameCreationService =
_liveDataGridView
.Site.GetService<INameCreationService>();
646
_liveDataGridView
.Columns,
650
IUIService? uiService =
_liveDataGridView
.Site?.GetService<IUIService>();
651
DataGridViewDesigner.ShowErrorDialog(uiService, errorString,
_liveDataGridView
);
660
if (!
_liveDataGridView
.Site.TryGetService(out IDesignerHost? host))
710
if (
_liveDataGridView
.DataSource is not null)
715
currencyManager = BindingContext?[
_liveDataGridView
.DataSource,
_liveDataGridView
.DataMember] as CurrencyManager;
770
IDesignerHost? host =
_liveDataGridView
.Site?.GetService<IDesignerHost>();
772
INameCreationService? nameCreationService =
_liveDataGridView
.Site?.GetService<INameCreationService>();
779
_liveDataGridView
.Columns,
788
IUIService? uiService =
_liveDataGridView
.Site?.GetService<IUIService>();
789
DataGridViewDesigner.ShowErrorDialog(uiService, errorString,
_liveDataGridView
);
806
_initialDataGridViewColumnsCount =
_liveDataGridView
.Columns.Count;