Problem with data source

Hello,

We have the next function to reload a data in a sfdatagrid:

            PartidaCN partidaCN = new PartidaCN();
            partidas = partidaCN.obtenerPartidaFRed(f_factura.IDfactura);

            if (DgPartidas.View != null)
            {
                source.DataSource = partidas;
                source.ResetBindings(false);
                DgPartidas.View.Refresh();
                DgPartidas.Refresh();
            }
            else
            {
                source.DataSource = partidas;
                DgPartidas.DataSource = source;
                IniciarGridPartidas();
            }

the first time the data load ok. but the next time when inter inside the view != null, the data source refresh well by the data on the editor still showing always the same info. (info of the first execution)

thanks

1 Reply

VS Vijayarasan Sivanandham Syncfusion Team July 2, 2020 03:54 AM UTC

Hi Mel,

Thank you for contacting Syncfusion support.

We have checked the reported issue “Problem with datasource in SfDataGrid” and unable to replicate the issue from our end. it is working fine as expected. Please find the tested sample and video demo from our end in the below link,
 
   

Video Link: https://www.syncfusion.com/downloads/support/forum/155640/ze/DataSourceChange-1891540703

Can you please share us below things?
       
        1. Brief replication procedure/video illustration of the reported issue

        2.
Code snippet related to customization in SfDataGrid       

 
if you still facing the same issue? If yes, please modify the sample based on your scenario.  
   
It will be helpful for us to check on it and provide you the solution at the earliest.     
   
Regards,   
Vijayarasan S



Loader.
Up arrow icon