Syncfusion.Grid.Grouping.Windows
Example 


DataSource Property (GridGroupingControl)

Gets or sets the data source that the control is displaying data for.

Syntax
'Declaration
 
<RefreshPropertiesAttribute(RefreshProperties.All)>
<DefaultValueAttribute()>
<CategoryAttribute("Data")>
<DescriptionAttribute("Indicates the source of data for the DataGrid.")>
<TypeConverterAttribute("System.Windows.Forms.Design.DataSourceConverter, System.Design")>
<AttributeProviderAttribute(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")>
Public Property DataSource As Object
'Usage
 
Dim instance As GridGroupingControl
Dim value As Object
 
instance.DataSource = value
 
value = instance.DataSource
[RefreshProperties(RefreshProperties.All)]
[DefaultValue()]
[Category("Data")]
[Description("Indicates the source of data for the DataGrid.")]
[TypeConverter("System.Windows.Forms.Design.DataSourceConverter, System.Design")]
[AttributeProvider(TypeName="System.ComponentModel.IListSource, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", PropertyName="")]
public object DataSource {get; set;}
Example
This example shows how to use the DataSource property.
// Data source.
DataCollection dataSource = new DataCollection();
//Assigning datasource for grid.
this.gridGroupingControl1.DataSource = dataSource;
' Data source.
Dim dataSource As New DataCollection()
'Assigning datasource for grid.
Me.gridGroupingControl1.DataSource = dataSource
AssemblyVersion

Syncfusion.Grid.Grouping.Windows: 17.1460.0.47

See Also