Skip to content

Conversation

@Naveen-Palanivel
Copy link
Contributor

Documentation(871699)MYSQL-Data-Binding

@Naveen-Palanivel Naveen-Palanivel added the documentation Improvements or additions to documentation label Feb 23, 2024
@Naveen-Palanivel Naveen-Palanivel self-assigned this Feb 23, 2024
@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: Documentation(871699)MYSQL-Data-Binding

@SyncfusionBuild
Copy link
Contributor

CI Status: FAILURE ❌
Source Compilation: SUCCESS ✅
Failure Reason: CI Failure with violation
Build Location: Documentation(871699)MYSQL-Data-Binding
Image Alt Text Error(s): 0
Image Size Error(s): 4
Image Name Error(s): 0
FT Layout Syntax Error(s): 0
Front matter Error(s): 2
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: Documentation(871699)MYSQL-Data-Binding

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: Documentation(871699)MYSQL-Data-Binding
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
FT Layout Syntax Error(s): 0
Front matter Error(s): 0
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0


# MySQL Data Binding in DataGrid

This section describes how to use [MySQL data](https://www.nuget.org/packages/MySql.Data) to retrieve data from a MySQL server and bind it to the Blazor Pivot Table.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not pivot table it is Data Grid


**1.** Create a simple Blazor Grid by following the **"Getting Started"** documentation [link](https://blazor.syncfusion.com/documentation/datagrid/getting-started-with-web-app).

**2.** To connect a MySQL using the MySQL driver in our application, we need to install the [MySQL.Data](https://www.nuget.org/packages/MySql.Data) NuGet package. To do so, open the NuGet package manager of the project solution, search for the package **MySQL.Data** and install it.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont use the word "we"


![Add the NuGet package MySQL.Data to the project](./images/MySQL-nuget-package-install.png)

**3.** Next, in the **Index.razor** page, get the MySQL data from the MySQL server and bind it to the DataGrid component as a datasource by using the Custom adaptor feature and configure the report to use the MySQL data.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here what is meant by "configure the report"

{% endhighlight %}
{% endtabs %}

**4.** In the custom adaptor’s **Read** method, you can get the Grid action details like paging,filtering,sorting information, etc., using **DataManagerRequest**.
Copy link
Collaborator

@MaithiliyK MaithiliyK Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to give space after comma. Provide API link for DataManagerRequest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants