Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }