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(System.ComponentModel.IListSource)>
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(System.ComponentModel.IListSource)]
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.4460.0.39

See Also