The easiest way to achieve this would be with jQuery. You need to make the containing cell and the label identifiable to unobtrusive javascript by using css classes. Then you can create a function for when the cell is hovered over which will find the label and display it, then hide when the mouse moves away:
Append the following lines to the server side logic you have already:
b.CssClass = "js-tooltip";
e.Cell.CssClass = "js-tooltip-container";
Your html should then look like (you don't have to code this part, its the result of your code behind):
<td class="js-tooltip-container">
<label class="js-tooltip" style="display:none;">add <br /> peek</label>
</td>
Then you need to add the following jQuery:
<script type="text/javascript">
$(function(){
$(".js-tooltip-container").hover(function(){
$(this).find(".js-tooltip").show();
}, function(){
$(this).find(".js-tooltip").hide();
});
});
</script>
The javascript makes use of the jQuery hover function. This is all boiler plate stuff so if you want something more robust and customisable I would consider using one of the plugins suggested here.
peek"`. I have added it to `e.Cell.Controls.Add(label)`. How can i make visible onhover calendar date. Can you help me please. – Nag Sep 12 '12 at 11:03