Class Columns
Represents a class that contains the collection of GridColumn.
Inheritance
System.Object
Columns
Implements
System.IDisposable
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class Columns : ObservableCollection<GridColumn>, IDisposable
Constructors
Columns()
Initializes a new instance of the Columns class.
Declaration
public Columns()
Properties
Item[String]
Gets the GridColumn for the given 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 GridColumn. |
Methods
Dispose()
Disposes the columns collection.
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 the call is from Dispose method. |
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Occurs when the collection is changed.
Declaration
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Specialized.NotifyCollectionChangedEventArgs | e | The System.Collections.Specialized.NotifyCollectionChangedEventArgs that contains the event data. |
ToString()
Overridden to update the display text in the property grid.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Returns the string that represent a current object. |
Implements
System.IDisposable