private void c1List1_FetchScrollTips(object sender, C1.Win.C1List.FetchScrollTipsEventArgs e) { //set the ScrollTip depending on which scroll bar was moved switch (e.ScrollBar) { case C1.Win.C1List.ScrollBarEnum.Horizontal: e.ScrollTip = this.c1List1.Columns[e.ColIndex].Caption; break; case C1.Win.C1List.ScrollBarEnum.Vertical: e.ScrollTip = "Record: " + (e.Row + 1) + " of " + this.c1List1.ListCount + "\n"; e.ScrollTip += "Company: " + this.c1List1.Columns["CompanyName"].CellText(e.Row) + "\n"; break; } e.TipStyle.BackColor = Color.White; e.TipStyle.ForeColor = Color.Black; }
private void C1List1_FetchScrollTips(object sender, C1.Win.C1List.FetchScrollTipsEventArgs e) { //set the ScrollTip depending on which scroll bar was moved switch (e.ScrollBar) { case C1.Win.C1List.ScrollBarEnum.Horizontal: e.ScrollTip = this.C1List1.Columns[e.ColIndex].Caption; break; case C1.Win.C1List.ScrollBarEnum.Vertical: e.ScrollTip = "Record: " + (e.Row + 1) + " of " + this.C1List1.ListCount + "\n"; e.ScrollTip += "Company: " + this.tb.Rows[e.Row]["Company"] + "\n"; e.ScrollTip += "User Code: " + this.tb.Rows[e.Row]["UserCode"]; break; } e.TipStyle.ForeColor = Color.Blue; }