<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RowClientSelection.aspx.cs" Inherits="DataGrid_RowClientSelection" %>
<%@ Register TagPrefix="APNSoft" Namespace="APNSoft.WebControls" Assembly="APNSoftControls" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>

    <script type="text/javascript">

    function ShowEvent(RowID, ColumnName, CellValue){
        try{
        
            var Event='<small><font color=Gray>The Row is clicked!</font>';
            Event += '<br/>Row ID: <b>'+RowID+'</b>';
            Event += '<br/>Column name: <b>'+ColumnName+'</b>';
            Event += '<br/>Cell value: <b>'+unescape(CellValue)+'</b><br/></small>';

            var GrayBox=document.getElementById('GrayBox');
            GrayBox.innerHTML+='<br/>'+Event;
            
        }catch(ex){}
    };

    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    <APNSoft:APNSoftDataGrid id="myDataGrid" runat="server"
        SkinFolder = "~/DataGrid/Skins/GrayScale/"
        width = "400" 
        height = "250" 
        ClientSideOnRowClick = "ShowEvent('$RowID$','$ColumnName$','$CellValue$');"
    />


    <div class="GrayBox" style="left:450px;top:32px;width:350px;">
        <div><b>Event log:</b></div>
        <div id="GrayBox"></div>
    </div>




    </div>
    </form>
</body>
</html>