how to retreive the row value on click
<pre><code> var RowClick = function() {
    ("#Grid").click(
         var  s = $("#Grid").jqGrid('getGridParam', 'selarrrow').toString();
         alert(s);
            $("#showgrid").load('/Inventory/Products/List/' + s));
    };
</code></pre>

<p>on RowClick i am trying to get the value of that row to send throw URL..
to access this Row value in my Actionresult method. 
but I am getting null value for the row? is this right what I am doing here?
Thanks</p>

<p>When I am doing somethign like this.. </p>

<pre><code>var value;
$("#Grid").click(function(e) {
                    var row = jQuery(e.target).parent();
                    value= row.attr("id");
});
    var RowClick = function() {
    ("#Grid").click(
            $("#showgrid").load('/Inventory/Products/List/' + value));
    };
</code></pre>

<p>on alert I am getting the row value perfectly but in my action result method Its showing me null value?</p>

<p>Public Actionresult List(string value)
{
  return View();
}</p>

<p>can anybody help me out.. thanks</p>
