We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Populate tree grid from SqlDatasource control


Is it possible to populate the treegrid form a SqlDatasource control?

How is the binding handled by the treegrid?



1 Reply

JA Jesus Arockia Sankaran S Syncfusion Team May 17, 2019 07:01 PM UTC

Hi Alex,Thank you for contacting Syncfusion support.We have analyzed your requirement. We can bind the SQL data source to the TreeGrid control by using the SqlDataSource control, for this we need to map the SqlDataSource control ID to the TreeGrid DataSourceID property.In this SqlDataSource control we need to provide the connection string and “selectcommand” to fetch the data.  Please find our below sample browser sample link for this.Sample browser Link: https://asp.syncfusion.com/demos/web/treegrid/sqlbinding.aspxPlease let us know, if you require further assistance on this
Jesus Arockia Sankaran S 

Live Chat Icon For mobile
Up arrow icon