Syncfusion.EJ2

DataSource Property (Grid)

It is used to render grid table rows. If the `dataSource` is an array of JavaScript objects, then Grid will create instance of [`DataManager`](https://ej2.syncfusion.com/documentation/data/api-dataManager.html) from this `dataSource`. If the `dataSource` is an existing [`DataManager`](https://ej2.syncfusion.com/documentation/data/api-dataManager.html), the Grid will not initialize a new one.
Syntax
[DefaultValue("")]
[HtmlAttributeName("dataSource")]
[Newtonsoft.Json.JsonProperty("dataSource")]
[Newtonsoft.Json.JsonConverter(Syncfusion.EJ2.DataSourceTypeConverter)]
public object DataSource {get; set;}
[DefaultValue("")]
[HtmlAttributeName("dataSource")]
[Newtonsoft.Json.JsonProperty("dataSource")]
[Newtonsoft.Json.JsonConverter(Syncfusion.EJ2.DataSourceTypeConverter)]
public:
property Object^ DataSource {
   Object^ get();
   void set (    Object^ value);
}
AssemblyVersion

Syncfusion.EJ2: 17.3500.0.26

See Also