14 writes to DataPropertyName
System.Windows.Forms (2)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
956
dataGridViewColumn.
DataPropertyName
= _props[i].Name;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
828
dataGridViewColumn.
DataPropertyName
= DataPropertyName;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
117
column.
DataPropertyName
= ((ListBoxItem)_dataColumns.SelectedItem!).PropertyName;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
298
destColumn.
DataPropertyName
= srcColumn.DataPropertyName;
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
667
dataGridViewColumn.
DataPropertyName
= backEndProps[i].Name;
System.Windows.Forms.Tests (9)
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (1)
2378
DataPropertyName
= "col1"
System\Windows\Forms\DataGridViewColumnTests.cs (8)
664
DataPropertyName
= value
669
column.
DataPropertyName
= value;
685
column.
DataPropertyName
= value;
690
column.
DataPropertyName
= value;
715
column.
DataPropertyName
= "text";
720
column.
DataPropertyName
= "text";
725
column.
DataPropertyName
= null;
731
column.
DataPropertyName
= "text";
36 references to DataPropertyName
System.Windows.Forms (18)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (2)
250
if (string.Equals(column.
DataPropertyName
, sortField.Name, StringComparison.OrdinalIgnoreCase))
637
if (string.Compare(dataGridViewColumn.
DataPropertyName
, dataPropertyName, ignoreCase: true, CultureInfo.InvariantCulture) == 0)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (15)
1544
&& !string.IsNullOrEmpty(dataGridViewCols[i].
DataPropertyName
)
1553
if (DataConnection is not null && DataConnection.BoundColumnIndex(dataGridViewCols[i].
DataPropertyName
) != -1)
1610
&& string.Compare(clonedColumn.
DataPropertyName
,
1611
boundColumns[j].
DataPropertyName
,
10453
Debug.Assert(dataGridViewColumn.
DataPropertyName
.Length != 0, "this method should be called only for columns which have DataPropertyName set");
10456
int boundColumnIndex = ((conn is null) ? -1 : conn.BoundColumnIndex(dataGridViewColumn.
DataPropertyName
));
13247
if (dataGridViewColumn.
DataPropertyName
.Length != 0)
13256
if (Columns[i].
DataPropertyName
.Length != 0)
13316
if (DataSource is not null && e.Column.
DataPropertyName
.Length != 0 && !_dataGridViewOper[OperationInRefreshColumns])
13320
else if (DataSource is not null && e.Column.
DataPropertyName
.Length == 0)
17131
&& string.Compare(dataGridViewColumn.
DataPropertyName
,
17132
Columns[i].
DataPropertyName
,
18945
dataGridViewColumn.
DataPropertyName
,
18946
Columns[i].
DataPropertyName
,
25434
if (DataSource is not null && dataGridViewCols[j].
DataPropertyName
.Length != 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
828
dataGridViewColumn.DataPropertyName =
DataPropertyName
;
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (3)
298
destColumn.DataPropertyName = srcColumn.
DataPropertyName
;
929
if (string.IsNullOrEmpty(column?.
DataPropertyName
))
1075
if (string.IsNullOrEmpty(column.
DataPropertyName
))
System\Windows\Forms\Design\DataGridViewDesigner.cs (5)
408
if (string.IsNullOrEmpty(dataGridViewColumn.
DataPropertyName
))
420
PropertyDescriptor? dataFieldProperty = backEndProps?[dataGridViewColumn.
DataPropertyName
];
467
if (string.IsNullOrEmpty(dataGridViewColumn.
DataPropertyName
))
481
PropertyDescriptor? dataFieldProperty = backEndProps?[dataGridViewColumn.
DataPropertyName
];
589
if (!string.IsNullOrEmpty(col.
DataPropertyName
))
System.Windows.Forms.Tests (10)
System\Windows\Forms\DataGridViewColumnTests.cs (10)
19
Assert.Empty(column.
DataPropertyName
);
70
Assert.Empty(column.
DataPropertyName
);
666
Assert.Equal(expected, column.
DataPropertyName
);
670
Assert.Equal(expected, column.
DataPropertyName
);
686
Assert.Equal(expected, column.
DataPropertyName
);
691
Assert.Equal(expected, column.
DataPropertyName
);
716
Assert.Equal("text", column.
DataPropertyName
);
721
Assert.Equal("text", column.
DataPropertyName
);
726
Assert.Empty(column.
DataPropertyName
);
732
Assert.Equal("text", column.
DataPropertyName
);