private void grid_SearchChangedEvents(object sender, SearchChangedEventArgs e) { if (e.SearchString.Equals(e.OldSearchString)) { throw new ApplicationException("Grid 'SearchChanged' event did not trigger correctly."); } if (string.IsNullOrEmpty(e.SearchString)) { throw new ApplicationException("Grid 'SearchChanged' and property 'SearchString' is EmptyOrNull"); } searcheventrunnned = true; }
private void grid_SearchChangedEvents(object sender, SearchChangedEventArgs e) { if (e.SearchString.Equals(e.OldSearchString)) throw new ApplicationException("Grid 'SearchChanged' event did not trigger correctly."); if (string.IsNullOrEmpty(e.SearchString)) throw new ApplicationException("Grid 'SearchChanged' and property 'SearchString' is EmptyOrNull"); searcheventrunnned = true; }