BindingManagerBase
Wisej.Web.BindingManagerBase
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Manages all Binding objects that are bound to the same data source and data member.
Properties
Bindings
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
BindingsCollection: Returns the collection of bindings being managed.
Count
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Int32: Returns the number of items in the list.
Current
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Object: Returns the current item in the list.
IsBindingSuspended
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Boolean: Returns whether binding is suspended.
Position
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Int32: Returns or sets the position of the data binding source within the list.
Methods
AddNew()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Adds a new item to the underlying list.
Throws:
NotSupportedException The underlying data source does not implement IBindingList, or the data source has thrown an exception because the user has attempted to add a row to a read-only or fixed-size DataView.
CancelCurrentEdit()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Cancels the current edit operation.
EndCurrentEdit()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Ends the current edit operation.
GetItemProperties()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Returns the property descriptor collection for the underlying list.
Returns: PropertyDescriptorCollection. A PropertyDescriptorCollection for the list.
RemoveAt(index)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Removes the item at the specified index.
Parameter | Type | Description |
---|---|---|
index | The index of the item to remove from the list. |
Throws:
IndexOutOfRangeException There is no row at the specified index .
ResumeBinding()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Resumes data binding.
SuspendBinding()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
Suspends data binding to prevents changes from updating the bound data source.
Events
BindingComplete
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
BindingCompleteEventHandler Fired at the completion of a data-binding operation.
CurrentChanged
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
EventHandler Fired when the currently bound item changes.
CurrentItemChanged
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
EventHandler Fired when the state of the currently bound item changes.
DataError
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
BindingManagerDataErrorEventHandler Fired when an Exception is silently handled by the BindingManagerBase.
PositionChanged
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F2647619304-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FHOivImCoV8KSJbQyp6QI%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia&width=300&dpr=4&quality=100&sign=d2776d01&sv=1)
EventHandler Fired after the value of the Position property has changed.
Inherited By
Name | Description |
---|---|
Keeps data-bound controls synchronized with each other: showing data from the same record. | |
Maintains a Binding between an object's property and a data-bound control property. |
Last updated