The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, I am running into strange event issue with GridListControl. I have multicolumn GridListControl placed inside of panel, so it displays grid-like data. To read content of the selected row, I used Grid_SelectionChanged event:
private void Grid_SelectionChanged(object sender, Syncfusion.Windows.Forms.Grid.GridSelectionChangedEventArgs e) { Foo(); //do things here } Foo() method uses myGrid.SelectedIndex and myGrid.SelectedItem properties and I expected that if user selected any row in the grid, they should be filled when event fires. 2 things look strange: 1. when user clicks on the row, Grid_SelectionChanged event fires twice. 2.first time myGrid.SelectedItem if filled but myGrid.SelectedIndex is still set to -1, which causes error in undelying method. The second time event fires, both properties are set properly. I used some work around to bypass logic if SelectedIndex=-1,but the question is, if Grid_SelectionChanged really fires AFTER selection happens. And why it is called twice? So far it is not that many things happening, but it may cause performance problem in the future, as we enhance the application. Should we use another event instead? Thanks for your help. Btw, we use version 4.402, and while I can not confirm it, but it seems that the older version did not have this problem, this code is about 3 years old.