Class Columns
Represents the collection of GridColumn.
Inheritance
System.Object
Columns
Implements
System.IDisposable
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class Columns : FreezableCollection<GridColumn>, IDisposable
Constructors
Columns()
Initializes a new instance of the Columns class.
Declaration
public Columns()
Properties
Item[String]
Gets or sets the column at the specified mapping name .
Declaration
public GridColumn this[string mappingName] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | mappingName | The mapping name of the column. |
Property Value
Type | Description |
---|---|
GridColumn | Returns the column with corresponding to its mapping name. |
Methods
CreateInstanceCore()
Initializes a new instance of columns class.
Declaration
protected override Freezable CreateInstanceCore()
Returns
Type | Description |
---|---|
System.Windows.Freezable | Returns the new instance of column collection. |
Dispose()
Disposes the memory of all columns used by the Columns class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the Columns 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. |
Resume()
Resumes the UI refresh when the columns are being added or removed.
Declaration
public void Resume()
Remarks
Update columns by calling RefreshColumns(SfDataGrid) method when the column updates are resumed.
Suspend()
Suspends the UI refresh when the columns are being added or removed.
Declaration
public void Suspend()
Implements
System.IDisposable