Example #1
0
    private void InitGridViewHeader()
    {
        DataTable dtStation = Station.GetStation(DBConnection);
        for (int r = FixedColCount; r <= StationList.Split(',').Length + (FixedColCount - 1); r++)
        {
            ToolUtility tool = new ToolUtility();
            string descr = tool.GetStationDescr(dtStation, gvQuery.HeaderRow.Cells[r].Text.Trim());
            string tip = tool.GetTipString(descr);
            gvQuery.HeaderRow.Cells[r].Attributes.Add("onmouseover", tip);
            gvQuery.HeaderRow.Cells[r].Attributes.Add("onmouseout", "UnTip()");

        }
    }