I have SF Data Grid as Overview in my Program. Now when I go into Details and change some Data and press Save then my Programm will refresh the Overview. I have made a SelectionChanged Event which will cause the Programm to display a summary on the left side. This is working fine if I do not refresh the Overview. If I refresh the event won't get executed.
GGGowtham Gopalsamy Syncfusion Team October 3, 2019 08:05 AM
Thank you for using Syncfusion controls.
We have analyzed the reported query to edit some value in SfDataGrid and refresh the SfDataGrid by using SfDataGrid.View.Refresh method in the save button. SelectionChanged event is fired after saving the data when we select any row in SfDataGrid.
We are unable to reproduce your reported scenario from our end and we have provided the tested sample. So, Please provide more details or modify the sample as per your requirement . It will help us to investigate further details and provide the earlier prompt solution.
Please let us know if you require further other assistance from us.
BJBenjamin JanickiOctober 8, 2019 06:56 AM
sorry for the late answer, I had holidays and were not at my Desktop.
My Code is following:
setupOverview will be executed at Startup and after the Details are changed.
it refreshes the total DataGrid.
Edit: The Program is for internal use only. I do not want to sell it.
GGGowtham Gopalsamy Syncfusion Team October 9, 2019 08:43 AM
Thanks for your patience.
We have analyzed your code snippet provided through link and we couldn’t able to understand your provided code. Please provide the simple sample because you have used the different type of collection. You are using the datagrid detailsview definition in the provided code and you are set DataSource to the detailsview datagrid. You can use the datasource of the main datagrid to detailsview datagrid based on the underlying data and arrange the column for detailsview in hierarchy by set theGridViewDefinition.RelationalColumn. We have provided the link in below,
MAMohanram Anbukkarasu Syncfusion Team October 11, 2019 07:22 AM
Thanks for your update. We have checked the provided sample and we are a little bit unclear with your requirement.
We suspect that your requirement it to update the details in the property grid immediately after updating the values by clicking the Accept Changes button. If yes, you have to refresh the property grid SelectedObject on Accept Changes button click same as you performed in SelectionChanged event.
If your requirement is to update the details in property grid only after clicking on the corresponding row, there is no need to set SelectedItem property in the CellDoubleClick event. Remove the code to set SelectedItem. So that the SelectionChanged event will be raised and the property grid will update properly.
Please let us know if we have misunderstood your requirement.
BJBenjamin JanickiOctober 17, 2019 01:19 AM
My requirement is met. Oh your DataGrid is not jumping to top after updating. This is great for me. The Default DataGrid in WinForms usually jumps to top so I made the datagrid.SelectedItem = Item. Oh I did not know it is not necassary in your DataGrid :)
Thanks alot for your assistance.
FPFarjana Parveen Ayubb Syncfusion Team October 18, 2019 12:22 AM
Thanks for the update.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.