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()
End Sub ’ItemDB


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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.