in asp.net datagrid write the following ways
<div id="D1" style="cursor: pointer"
onclick='<%#String.Format("OpenDelWindow({0},{1},{2},{3})",1,Eval("DoctorID"),Eval("EmployeeID"),1)%>'>
<%# Eval("D1") %>
</div>
function OpenDelWindow(day, doctorID, EmployeeID, Shift) {
}
<div id="D1" style="cursor: pointer"
onclick='<%#String.Format("OpenDelWindow({0},{1},{2},{3})",1,Eval("DoctorID"),Eval("EmployeeID"),1)%>'>
<%# Eval("D1") %>
</div>
function OpenDelWindow(day, doctorID, EmployeeID, Shift) {
}