Live Chat Icon For mobile
Live Chat Icon

How to display a Tooltip when hovering over the Header sort link of the DataGrid

Platform: ASP.NET| Category: DataGrid

Protected Sub ItemDB(sender As Object, e As System.Web.UI.WebControls.DataGridItemEventArgs)
	Dim i As Integer
	For i = 0 To e.Item.Cells.Count - 1
		e.Item.Cells(i).ToolTip = 'This is Column ' + i.ToString()
	Next 
End Sub ’ItemDB

C#


protected void ItemDB (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
	for(int i=0 ;i<= e.Item.Cells.Count -1;i++)
	{
		e.Item.Cells[i].ToolTip = 'This is Column ' + i.ToString();
	}
}

Share with

Share on twitter
Share on facebook
Share on linkedin