Class DetailsViewNotifyListener
Represents a class that used to notify the details view changes to the parent grid.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class DetailsViewNotifyListener : IDetailsViewNotifyListener, IDisposable
Constructors
DetailsViewNotifyListener(SfDataGrid)
Initializes a new instance of the DetailsViewNotifyListener class.
Declaration
public DetailsViewNotifyListener(SfDataGrid sourceDataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sourceDataGrid | The source data grid. |
DetailsViewNotifyListener(SfDataGrid, SfDataGrid)
Initializes a new instance of the DetailsViewNotifyListener class.
Declaration
public DetailsViewNotifyListener(SfDataGrid sourceDataGrid, SfDataGrid parentDataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sourceDataGrid | The source data grid. |
SfDataGrid | parentDataGrid | The parent data grid. |
Properties
SourceDataGrid
Gets the SourceDataGrid - SfDataGrid placed in the GridViewDefinition
Declaration
public SfDataGrid SourceDataGrid { get; }
Property Value
Type |
---|
SfDataGrid |
Methods
CopyPropertiesFromSourceDataGrid(SfDataGrid)
Copies the properties from SourceDataGrid to DetailsViewDataGrid.
Declaration
public DetailsViewDataGrid CopyPropertiesFromSourceDataGrid(SfDataGrid sourceDataGrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sourceDataGrid | The Source DataGrid. |
Returns
Type | Description |
---|---|
DetailsViewDataGrid | The copied DetailsViewDataGrid. |
Dispose()
Disposes the resources used by the DetailsViewNotifyListener class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes the resources used by the DetailsViewNotifyListener class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Specifies whether the objects are disposing. |
EnsureCollection<T, S>(T, Func<SfDataGrid, T>, Func<S, S, Boolean>, IDetailsViewNotifier)
Ensures the collections.
Declaration
public void EnsureCollection<T, S>(T source, Func<SfDataGrid, T> target, Func<S, S, bool> predicate, IDetailsViewNotifier notifier)
where T : IList<S>
Parameters
Type | Name | Description |
---|---|---|
T | source | The source collection. |
System.Func<SfDataGrid, T> | target | The target collection. |
System.Func<S, S, System.Boolean> | predicate | The predicate function. |
IDetailsViewNotifier | notifier | The notifier. |
Type Parameters
Name | Description |
---|---|
T | The collection of source type. |
S | The source type. |
GetParentDataGrid()
Gets the parent data grid.
Declaration
public SfDataGrid GetParentDataGrid()
Returns
Type | Description |
---|---|
SfDataGrid | Returns the parent data grid. |
NotifyCollectionChanged(Object, NotifyCollectionChangedEventArgs, Func<SfDataGrid, Object>, IDetailsViewNotifier, Type)
Notifies the collection changed.
Declaration
public void NotifyCollectionChanged(object source, NotifyCollectionChangedEventArgs e, Func<SfDataGrid, object> target, IDetailsViewNotifier notifier, Type baseType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | The source. |
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | The System.Collections.Specialized.NotifyCollectionChangedEventArgs. that contains the event data. |
System.Func<SfDataGrid, System.Object> | target | The target function. |
IDetailsViewNotifier | notifier | The notifier. |
System.Type | baseType | The base type. |
NotifyCollectionPropertyChanged(IDetailsViewNotifier, Type)
Notifies the collection property changed.
Declaration
public void NotifyCollectionPropertyChanged(IDetailsViewNotifier notifier, Type baseType)
Parameters
Type | Name | Description |
---|---|---|
IDetailsViewNotifier | notifier | The notifier. |
System.Type | baseType | The base type. |
NotifyPropertyChanged(Object, String, Object, Func<SfDataGrid, Object>, IDetailsViewNotifier, Type)
Notifies the property changed.
Declaration
public void NotifyPropertyChanged(object source, string propertyName, object newValue, Func<SfDataGrid, object> target, IDetailsViewNotifier notifier, Type baseType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | source | The source. |
System.String | propertyName | The changed property name. |
System.Object | newValue | The new value of the property. |
System.Func<SfDataGrid, System.Object> | target | The target function. |
IDetailsViewNotifier | notifier | The notifier. |
System.Type | baseType | The base type. |
ProcessCollectionChanged(NotifyCollectionChangedEventArgs, IList, IList, Type)
Process the collection changed.
Declaration
public static void ProcessCollectionChanged(NotifyCollectionChangedEventArgs e, IList source, IList target, Type baseType)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | The System.Collections.Specialized.NotifyCollectionChangedEventArgs that contains the collection changed data. |
System.Collections.IList | source | The source collection. |
System.Collections.IList | target | The target collection. |
System.Type | baseType | The base type. |