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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind the SQLite database table as datasource in SfDataGrid

Platform: Xamarin.Forms |
Control: SfDataGrid

The SfDataGrid is bound to an external data source to display the data. SfDataGrid.ItemsSource property helps to bind the SfDataGrid with the collection of objects. It supports all popular data sources such as List, Observable Collection, and so on. In addition it also allows you to bind data from an external database.

In case, if you wish to bind the data from a SQLite database table, SfDataGrid allows you to achieve the same using the SfDataGrid.ItemsSource property. To do it, you have to create a SQLite database table, populate the data and store them as an IEnumerable collection and bind it to SfDataGrid. Refer the following link to know how to work with local databases of SQLite in Xamarin.Forms.


Refer the following code example which illustrates, how to create a SQLite database table and insert items in it.





Refer the following code example for binding the data from a SQLite Database to a SfDataGrid.



Sample Link:


2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment
Oct 16, 2019

Hi, Can you provide a sample on how to bind a single column. Thanks.


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile