This question is locked. New answers and comments are not allowed.
All of a sudden, my Gridview began having data loading performance issues, in a big way. It was working fine, but I am not sure what it is I did that caused this behavior to happen. I am using a NetRIA service to load my data, and the data is retrieved pretty fast, but for some reason, it is taking the GridView an extremely long time to load it. It also take very long time to do a SelectAll on it. Can anyone help me trouble shoot my app? I am not sure what I a have done to break it. Here is a snipet of code of where I am laoding the data:
| public partial class GridViewTest : UserControl |
| { |
| public GridViewTest() |
| { |
| InitializeComponent(); |
| this.Loaded += new RoutedEventHandler(GridViewTest_Loaded); |
| } |
| void GridViewTest_Loaded(object sender, RoutedEventArgs e) |
| { |
| // NetRIA proxy |
| PortalDomainContext portalDomainContext = new PortalDomainContext(); |
| LoadOperation<ValidValue> lo = portalDomainContext.Load( |
| portalDomainContext.GetValidValuesQuery(247, 154, |
| 3, 8), GetValidValuesComplete, null); |
| } |
| private void GetValidValuesComplete(LoadOperation<ValidValue> lo) |
| { |
| if (!lo.HasError) |
| { |
| radGridView1.ItemsSource = lo.Entities; |
| } |
| } |
| private void checkSelall_Checked(object sender, RoutedEventArgs e) |
| { |
| if (checkSelall.IsChecked == true) |
| { |
| radGridView1.SelectAll(); |
| } |
| else |
| radGridView1.UnselectAll(); |
| } |
| } |