----------------------------------------------------- empname | 1 | 2 | 3 | 4 | 5 |.....|11|...|30or 31(in depend on month) ---------------------------------------------------- xxx | P | P | P | | P |.....| |..... ddd | P | P | A | | A |.....| |..... rrr | A | A | P | | A |.....| |..... ----------------------------------------------------
private void GridView_MouseHover(object sender, EventArgs e) { // Color gridcolor = GridView.CurrentCell.Style.BackColor; // GridView.CurrentCell.Style.BackColor = Color.Gray; // GridView.DefaultCellStyle.BackColor = Color.Gray; // MessageBox.Show(gridcolor.ToString()); if (GridView.CurrentCell.Style.BackColor == Color.Gray) { GridView.CurrentCell.ToolTipText = "Sunday"; } }