Class DetailsViewManager
Implements
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public abstract class DetailsViewManager : Object, IDisposable
Fields
DisableLastColumnResizingProperty
if DetailsView is used and DisableLastColumnResizing is true, it will disbale the parent grid last column resizing when parent grid width is less than that of child grid
Declaration
public static readonly DependencyProperty DisableLastColumnResizingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AllowDisposeCollectionView
Dispose the details view itemssource (ICollectionView) when the row moves out of the view.
Declaration
public static bool AllowDisposeCollectionView { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
AdjustParentDataGridWidth()
Adjust parent with based on ExtendedWidth to accommodate DetailsViewDataGrid
Declaration
public void AdjustParentDataGridWidth()
BringIntoView(Int32)
Bring the DetailsViewDataGrid having the specified row Index
Declaration
public void BringIntoView(int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | RowIndex |
CollapseAllDetailsView()
Collapse all the records in SfDataGrid.
Declaration
public void CollapseAllDetailsView()
CollapseDetailsViewAt(Int32)
Collapses the DetailsViewDataGrid at specified record index.
Declaration
public void CollapseDetailsViewAt(int recordIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recordIndex | Index of the record. |
Dispose()
Disposes all the resources used by the DetailsViewManager class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DetailsViewManager class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
ExpandAllDetailsView()
Expand all the records in SfDataGrid
Declaration
public void ExpandAllDetailsView()
ExpandDetailsViewAt(Int32)
Expands the record at specified record index.
Declaration
public bool ExpandDetailsViewAt(int recordIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | recordIndex | Index of the record. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the record is expanded. otherwise false. |
GetChildSource(Object, String)
Get child itemssource for the record
Declaration
public IEnumerable GetChildSource(object record, string relationName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | record |
System.String | relationName | relationName |
Returns
Type | Description |
---|---|
System.Collections.IEnumerable | IEnumerable source |
GetDisableLastColumnResizing(SfDataGrid)
Gets the value indicating whether the LastColumnResizing can be disabled or not.
Declaration
public static bool GetDisableLastColumnResizing(SfDataGrid element)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | element |
Returns
Type | Description |
---|---|
System.Boolean | true if the Last column resizing can be disabled; otherwise false. |
SetDisableLastColumnResizing(SfDataGrid, Boolean)
Sets the value for the DisableLastColumnResizing.
Declaration
public static void SetDisableLastColumnResizing(SfDataGrid element, bool value)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | element | |
System.Boolean | value |