dataItem

dataItem(index) - returns the data item to which the current row on passed index is bound.

NOTE: This function uses the view index of the item - the index in the current view (e.g. page), not the index in the whole data source item list. The selectedRowIndices function returns both the view and data index of currently selected rows.

$("#grid1").shieldGrid({
    dataSource: {
        data: products,
        schema: {
            fields: {
                id: { path: "ProductID", type: Number},
                name: { path: "ProductName", type: String, nullable: false },
                quantity: { path: "SupplierID", type: Number },
                price: { path: "UnitPrice", type: Number },
                units: { path: "UnitsInStock", type: Number },
                discontinued: { path: "Discontinued", type: Boolean },
                myDate: { path: "d", type: Date }
            }
        }
    },
    rowHover: false,
    columns: [
        { field: "id" },
        { field: "name", width: "200px" },
        { field: "quantity" },
        { field: "price" },
        { field: "units" },
        { field: "discontinued" },
        { field: "myDate", format: "{0:MM/dd/yyyy}" }
    ],
    editing: {
        enabled: true,
        event: "doubleclick
        type: "cell",  
        confirmation: {
            "delete": {
                enabled: true,
                template: "Delete row {0}?" 
            }
        }
    }
});

function ReturnNameForThirdItem() {
    alert($("#grid1").swidget().dataItem(3).name);
}