This example just shows the combination of the above 3 basic samples (Edit, Add, Delete) in a single grid. It can be used for reference and easy starting point when creating a grid with CRUD (Create, Read, Update,Delete) operations enabled.

Take a look at the PHP code file for implementation details.
require_once '../../../../php/demo/tabs.php';
<!DOCTYPE html>
    <title>jqGrid PHP Demo</title>
    <link rel="stylesheet" type="text/css" media="screen" href="../../../../css/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../../../../css/trirand/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../../../../css/ui.multiselect.css" />
    <style type="text">
        html, body {
        margin: 0;            /* Remove body margin/padding */
        padding: 0;
        overflow: hidden;    /* Remove scroll bars on browser window */
        font-size: 75%;
    <script src="../../../../js/jquery.min.js" type="text/javascript"></script>
    <script src="../../../../js/trirand/i18n/grid.locale-en.js" type="text/javascript"></script>
         <script src="../../../../js/trirand/jquery.jqGrid.min.js" type="text/javascript"></script> <script type="text/javascript">         
    $.jgrid.no_legacy_api = true;
    $.jgrid.useJSON = true;
    $.jgrid.defaults.width = "700";
    <script src="../../../../js/jquery-ui.min.js" type="text/javascript"></script>
          <?php include ("grid.php");?>
      <?php tabs(array("grid.php"));?>
require_once '../../jq-config.php';
// include the jqGrid Class
require_once ABSPATH."php/PHPSuito/jqGrid.php";
// include the driver class
require_once ABSPATH."php/PHPSuito/DBdrivers/jqGridPdo.php";
// Connection to the server
// Tell the db that we use utf-8
$conn->query("SET NAMES utf8");

// Create the jqGrid instance
$grid = new jqGridRender($conn);
// Write the SQL Query
$grid->SelectCommand 'SELECT CustomerID, CompanyName, Phone, PostalCode, City FROM customers';
// Set the table to where you add the data
$grid->table 'customers';
$grid->serialKey false;
// Set output format to json
$grid->dataType 'json';
// Let the grid create the model
// Set the url from where we obtain the data
// Set some grid options
// The primary key should be entered
$grid->setColProperty('CustomerID', array("editrules"=>array("required"=>true)));
$grid->setColProperty('CompanyName', array("edittype"=>"textarea""editoptions"=>array("rows"=>3"cols"=>20)));
// Enable navigator
$grid->navigator true;
// Enable only deleting
$grid->setNavOptions('navigator', array("excel"=>false,"add"=>true,"edit"=>true,"del"=>true,"view"=>false"search"=>false));
// Enjoy