'Declaration
Public Class ToolTipEventArgs Inherits RowColEventArgs
public class ToolTipEventArgs : RowColEventArgs
'Declaration
Public Class ToolTipEventArgs Inherits RowColEventArgs
public class ToolTipEventArgs : RowColEventArgs
private void Form1_Load(object sender, EventArgs e) { _flex = new C1FlexGrid(); _flex.Dock = DockStyle.Fill; this.Controls.Add(_flex); OleDbConnection con = new OleDbConnection(""provider=microsoft.jet.oledb.4.0;Data Source="" + Environment.GetFolderPath(Environment.SpecialFolder.Personal) + ""\\ComponentOne Samples\\Common\\C1NWind.mdb""); DataTable productsTable = new DataTable(); new OleDbDataAdapter(""Select * from Products"", con).Fill(productsTable); _flex.DataSource = productsTable; _flex.ScrollOptions = ScrollFlags.ShowScrollTips; _flex.ShowScrollTip += _flex_ShowScrollTip; } //display a scroll tip showing the value of the first cell that will become visible when the user stops scrolling. private void _flex_ShowScrollTip(object sender, ToolTipEventArgs e) { e.ToolTipText = string.Format(""row {0}"", e.Row); }
System.Object
System.EventArgs
C1.Win.C1FlexGrid.RowColEventArgs
C1.Win.C1FlexGrid.ToolTipEventArgs