[]
Gets or sets a value of the specified view property.
public object this[int propertyOrdinal] { get; set; }
Type | Name | Description |
---|---|---|
int | propertyOrdinal | The ordinal position of the property in the collection of public properties of the type of the view element. |
Type | Description |
---|---|
object | The value of the property. |
Setting a view property is an update operation on the view. As any other update operation performed directly on the view (as opposed to on the base data collection on which that view depends, see AsUpdatable<T>(View<T>)), it is allowed only if the view is not read-only (see IsReadOnly), and it results in updating one of the view's base data collections.
Only updatable properties can be set. An attempt to set a read-only property results in an exception. See IsReadOnly for more details.
Gets or sets a value of the specified view property.
public object this[string propertyName] { get; set; }
Type | Name | Description |
---|---|---|
string | propertyName | The name of the property. |
Type | Description |
---|---|
object | The value of the property. |
Setting a view property is an update operation on the view. As any other update operation performed directly on the view (as opposed to on the base data collection on which that view depends, see AsUpdatable<T>(View<T>)), it is allowed only if the view is not read-only (see IsReadOnly), and it results in updating one of the view's base data collections.
Only updatable properties can be set. An attempt to set a read-only property results in an exception. See IsReadOnly for more details.