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