Hi
With below code it gives selected column value . I also want to get value of first column of that row.
Also 0 row & selected column no Value also.
<script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script> <script type="text/javascript" language="javascript"> $(document).ready(function() { $("#<%=grdPlanning.ClientID%> tr:has(td)").hover(function(e) { $(this).css("cursor", "pointer"); });
$("#<%=grdPlanning.ClientID%> tr:has(td)").click(function(e) { var selTD = $(e.target).closest("td"); $("#<%=grdPlanning.ClientID%> td").removeClass("selected"); selTD.addClass("selected"); $("#<%=lblSelected.ClientID%>").html('Selected Cell Value is: <b> ' + selTD.text() + '</b>'); }); })
Thanks