Use Same Grid with dynamic datasource

I have a Syncfusion.JavaScript.Web.Grid that displays  dynamic rows and columns using dynamic  datasources to render data

The first datasource displays the correct number of rows and columns, but when I change the data source, the rows show but the columns dont change to the new datasource.

How do I reset the datasource to use the new datasource data


Thank you



Attachment: screenshorts_a26560c5.zip

1 Reply

PS Pon Selva Jeganathan Syncfusion Team November 21, 2023 02:01 PM UTC

Hi Michael,


Query: How do I reset the datasource to use the new datasource data


We have achieved your query by using the dataSource method of the grid. In this method, we need to pass the new dataSource as a parameter.


We have already discussed same in our help documentation. Refer to the below help documentation,

https://help.syncfusion.com/aspnet/grid/how-to/refresh-datasource

https://help.syncfusion.com/aspnet/grid/how-to/set-dynamic-datasource-to-grid


If we misunderstand your requirement, kindly share the below details which is helpful to proceed further.


  1. Detailed explanation of your requirement
  2. A video demo of your requirement.
  3. Complete grid code example


Kindly get back to us for further assistance.


Regards,
Pon selva


If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.



Loader.
Up arrow icon