The
RowDataBound
event of the
GridView
can be used to setup the
ToolTips
as follows:
string[] dayNames = Enum.GetNames(typeof(DayOfWeek));
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {
if (e.Row.RowType == DataControlRowType.DataRow) {
string day = e.Row.Cells[9].Text;
e.Row.Cells[9].ToolTip = dayNames.FirstOrDefault(n => n.StartsWith(day == "T" ? "Tu" : day == "S" ? "Sa" : day)) ?? "";
}
}