title: To apply onclickListener on GridView in BlackBerry
body: <p>I have taken an Grid an added 9 images in it and onclick of any Image i am trying to navigate on some page.But i am not able to set a listener on GridField manager .i tried the following code :</p>
  
  <pre><code>            grid.add(bmp1);
      grid.add(bmp2);
      grid.add(bmp3);
      grid.add(bmp4);
      grid.add(bmp5);
  
      grid.setChangeListener(new fieldChangeListener());
      add(grid);
  }
  class fieldChangeListener implements FieldChangeListener{
  
  
      public void fieldChanged(Field field, int arg1) {
          // TODO Auto-generated method stub
          System.out.println("Inside Method : "+field.getAccessibleContext());
          if(field==bmp1){
              Dialog.alert("1 is clicked");
          }
          if(field==bmp2){
              Dialog.alert("2 is clicked");
          }
          if(field==bmp3){
              Dialog.alert("3 is clicked");
          }
          if(field==bmp4){
              Dialog.alert("4 is clicked");
          }
          if(field==bmp5){
              Dialog.alert("5 is clicked");
          }
  </code></pre>