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