title: Use jqgrid action formatter
body: <p>I fill grid by ashx file  and its work fine.
  When i add action in grid ,data of cell shift to right and last column show Null.</p>
  
  <p>Before add Action</p>
  
  <p><img src="https://i.stack.imgur.com/xeHjz.png" alt="enter image description here"></p>
  
  <p>After add Action</p>
  
  <p><img src="https://i.stack.imgur.com/0TeLf.png" alt="enter image description here"></p>
  
  <p>grid in firebug:</p>
  
  <p><img src="https://i.stack.imgur.com/I61MU.png" alt="enter image description here"></p>
  
  <p>ashx:</p>
  
  <pre><code>  public void ProcessRequest(HttpContext context) {
              HttpRequest request = context.Request;
              HttpResponse response = context.Response;
              string _search = request["_search"];
              string numberOfRows = request["rows"];
              string pageIndex = request["page"];
              string sortColumnName = request["sidx"];
              string sortOrderBy = request["sord"];
              int totalRecords;
    Collection&lt;User&gt; users = GetDummyUsers(numberOfRows, pageIndex, sortColumnName, sortOrderBy, out totalRecords);
              string output = BuildJQGridResults (users, Convert.ToInt32 (numberOfRows), Convert.ToInt32 (pageIndex), Convert.ToInt32 (totalRecords));
              response.Write (output);
          }
  </code></pre>
  
  <p>Create Users:</p>
  
  <pre><code> private Collection&lt;User&gt; GetDummyUsers(string numberOfRows, string pageIndex, string sortColumnName, string sortOrderBy, out int totalRecords) {
              var data = new Collection&lt;User&gt; {
                  new User(){ UserID = 1,UserName = "Bill Gates", FirstName = "Bill", LastName = "Gates",EmailID = "test@microsoft.com",  },
                  new User(){ UserID = 1,UserName = "Bill Gates", FirstName = "Bill", LastName = "Gates",EmailID = "test@microsoft.com",  },
                  new User(){ UserID = 1,UserName = "Bill Gates", FirstName = "Bill", LastName = "Gates",EmailID = "test@microsoft.com",  },
              };
              totalRecords = data.Count;
              return data;
          }
  </code></pre>
  
  <p>ConvetTo json:</p>
  
  <pre><code> private string BuildJQGridResults(Collection&lt;User&gt; users, int numberOfRows, int pageIndex, int totalRecords) {
              JQGridResults result = new JQGridResults ();
              List&lt;JQGridRow&gt; rows = new List&lt;JQGridRow&gt; ();
              foreach (User user in users) {
                  JQGridRow row = new JQGridRow ();
                  row.id = user.UserID;
                  row.cell = new string[5];
                  row.cell[0] = user.UserID.ToString ();
                  row.cell[1] = user.UserName;
                  row.cell[2] = user.FirstName;
                  row.cell[3] = user.LastName;
                  row.cell[4] = user.EmailID;
                  rows.Add (row);
              }
              result.rows = rows.ToArray ();
              result.page = pageIndex;
              result.total = (totalRecords + numberOfRows - 1) / numberOfRows;
              result.records = totalRecords;
              return new JavaScriptSerializer ().Serialize (result);
          }
  </code></pre>
  
  <p>grid:</p>
  
  <pre><code>     url: 'jqGridHandler.ashx',
              datatype: 'json',
              autowidth: true,
              height: 100,
              colNames: ['ACTION', 'ID', 'UserName', 'FirstName', 'LastName', 'EmailID'],
              colModel: [
                           {
                               name: 'act', width: 100, align: 'center', sortable: false, formatter: 'actions',
                               formatoptions: {
                                   keys: true, 
                                   delOptions: true,
                                   delbutton:true,
                                   editbutton:false
                               }
                           },
  
                            { name: 'UserID', width: 100, sortable: true, },
                          { name: 'UserName', width: 100, sortable: true },
                          { name: 'FirstName', width: 100, sortable: true },
                          { name: 'LastName', width: 100, sortable: true },
                          { name: 'EmailID', width: 100, sortable: true },
              ],
              rowNum: 20,
              loadonce: true,
              rowList: [5, 10, 20],
              recordpos: "left",
              ignoreCase: true,
              toppager: true,
              viewrecords: true,
              sortorder: "desc",
              scrollOffset: 1,
          });
      });
  </code></pre>