title: Jqgrid- Enable add row just if there is a selected row
body: <p>I tried to change the text of the dialog,
  but when I need again the original dialog, it already not good any more</p>
  
  <p>if you have better idea to force the user to select row when he add a new row 
  I will be vary happy.
        //ADD</p>
  
  <pre><code>    url: 'Handler.ashx',
      closeOnEscape: true,
      closeAfterAdd: true,
      reloadAfterSubmit: true,      
      drag: true,
      beforeShowForm: function (frm) {
          if ($("#Grid1")[0].p.selrow == null) {                       
              $("#TblGrid_Grid1").text("Please, select row");
              $("#edithdGrid1").text("Warning!");
              $("#cData").text("OK");
              $("#sData").hide();
          }
  
          }
  
  
  
      },
  </code></pre>